Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 69)
69.
How can you prompt the user to enter three numbers and find the maximum among them?
max_num(get_three_numbers())
maximum = find_max(input("Enter three numbers separated by spaces: ")); print(maximum)
max_value = input("Enter three numbers: "); print(find_maximum(max_value))
print("Maximum:", max(input("Enter three numbers: ").split()))
Answer: Option
Explanation:
To prompt the user to enter three numbers and find the maximum among them, use print("Maximum:", max(input("Enter three numbers: ").split())).
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.