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.
The first line of input contains space-separated integers.
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
print(max([int(n) for n in input().split()]))
Comments
Leave a comment