Advertisement
Shahar_Goldenberg

Untitled

Oct 31st, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. numList = []
  2. for i in range(20):
  3.     num = int(input("Enter number: "))
  4.     numList.append(num)
  5. numList.sort()
  6. print("the min number is :{}".format(numList[0]))
  7. print("and the max number is :{}".format(numList[-1]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement