Create a Python program to accept a list of numbers from the user then display the highest number and lowest number. Also display the reverse of the list.
Answers
Answered by
0
Explanation:
print("Enter the list: ", end="")
numlist=[int(x) for x in input().split(" ")]
max=max(numlist)
min=min(numlist)
revlist=numlist[::-1]
("The original list is: ",numlist)
print("The highest number in the list is: ",max)
print("The lowest number in the list is: ",min)
print("The reverse of the list is: ",revlist)
Answered by
0
a=eval(input("enter the list"))
max=max(a)
min=min(a)
revlist=a[::-1]
("The original list is: ",a)
print("The highest number in the list is: ",max)
print("The lowest number in the list is: ",min)
print("The reverse of the list is: ",revlist)
Similar questions