Advertisement
AntoniiaG

Untitled

Dec 11th, 2023
701
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. import random
  2.  
  3. l1 = random.sample(range(1,100), 10)
  4. print(l1)
  5.  
  6. def checklist(l1, c):
  7.     for i in range(len(l1)):
  8.         if l1[i] < c:
  9.             l1[i] = 0
  10.     print(l1)
  11.        
  12. checklist(l1, c = int(input()))
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement