Answer to Question #222679 in Python for kaavya

Question #222679

Largest Number in the List:

You are given space-separated integers as input. Write a program to print the maximum number among the given numbers.


1
Expert's answer
2021-08-02T15:55:18-0400
#Getting the space separated integers from the user and then putting it in a list
numbers = list(input("Enter space separated integers ").split())
print("The numbers are:\t"+str(numbers))
print("The maximum number is: \t"+max(numbers))

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