Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- arr = []
- index = 0
- while True:
- n = int(input("Enter number: "))
- if(n < 20 or n > 40):
- print("20<n<40")
- continue
- else:
- arr[index] = random.randInt(2, 200)
- index += 1
- arr.remove(min(arr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement