Guest User

Untitled

a guest
Mar 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89];
  2. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
  3.  
  4. a=set(a);
  5. b=set(b);
  6.  
  7. new = [x for x in a if x in a and x in b];
  8. print(new);
Add Comment
Please, Sign In to add comment