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.
#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))
Comments
Leave a comment