Answer to Question #225786 in Python for Siva

Question #225786




ASSIGNMENT - 2

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.

Input

The first line of input contains space-separated integers.

Explanation

In the example, the integers given are

1, 0, 3, 2, 9, 8. The maximum number present among them is 9. So, the output should be 9.

Sample Input 1

1 0 3 2 9 8

Sample Output 1

9

Sample Input 2

-1 -3 -4 0

Sample Output 2




1
Expert's answer
2021-08-13T06:35:42-0400
print(max([int(n) for n in input().split()]))

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