Oct-13-2020, 06:23 PM
(This post was last modified: Oct-13-2020, 06:44 PM by Yoriz.
Edit Reason: Added code tags
)
def find_min(a, b, c): min(a, b, c) def find_max(a, b, c): max(a, b, c) def main(): a = int(input("Enter number 1:")) b = int(input("Enter number 2:")) c = int(input("Enter number 3:")) find_min(a, b, c) find_max(a, b, c) print("The min is", {find_min}) print("The max is", {find_max}) main()user input is:
Enter number 1:5
Enter number 2:6
Enter number 3:7
and the output I get is:
The min is {<function find_min at 0x10e618b80>}
The max is {<function find_max at 0x1100591f0>}
I don't understand why im getting that and not the minimum value of 5 and the maximum value of 7?