Advertisement
ABIX_Edukacja

LwS-Python-06

Apr 9th, 2020
9,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. from random import randint
  2. from random import seed
  3.  
  4. seed(10)
  5. lst = []
  6.  
  7. for el in range(20):
  8.     lst.append(randint(1, 40))
  9.  
  10. print(lst)
  11. # [37, 3, 28, 31, 37, 1, 14, 30, 32, 18, 11, 3, 34, 32, 21, 5, 16, 24, 3, 27]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement