Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. import random
  2. a = random.sample(range(15), 10)
  3. b = random.sample(range(20),13)
  4. c=[i for i in a if i in b]
  5. print(a)
  6. print(b)
  7. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement