Advertisement
vallec

Untitled

Sep 18th, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import random
  2.  
  3. arr = []
  4. index = 0
  5. while True:
  6. n = int(input("Enter number: "))
  7. if(n < 20 or n > 40):
  8. print("20<n<40")
  9. continue
  10. else:
  11. arr[index] = random.randInt(2, 200)
  12. index += 1
  13.  
  14.  
  15. arr.remove(min(arr))
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement