Answer to Question #94540 in Python for Christian

Question #94540
Write a program that takes three numbers as input and prints the largest.

Sample run:

Enter a number: 20
Enter a number: 50
Enter a number: 5
Largest: 50
1
Expert's answer
2019-09-15T13:05:46-0400
arr = []
for i in range(0, 3):
    arr.append(input("Enter a number: "))
print("Largest: " + str(max(arr)))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS