Guest User

Untitled

a guest
Nov 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. import random
  2.  
  3. a = random.sample(range(1, 50), 12)
  4. b = random.sample(range(1, 50), 10)
  5.  
  6. result = [i for i in set(a) if i in b]
Add Comment
Please, Sign In to add comment