Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- l1 = random.sample(range(1,100), 10)
- print(l1)
- def checklist(l1, c):
- for i in range(len(l1)):
- if l1[i] < c:
- l1[i] = 0
- print(l1)
- checklist(l1, c = int(input()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement