Advertisement
repente

Untitled

May 14th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. a = [1, 2, 1, 13, 5 ,13]
  2. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  3. c = []
  4.  
  5. for i in a:
  6. if i in c:
  7. continue
  8. if i in b:
  9. c.append(i)
  10.  
  11. print(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement