Guest User

Untitled

a guest
Apr 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. def intersect(a, b):
  4. return list(set(a) & set(b))
  5.  
  6. def main():
  7. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  8. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  9. print(intersect(a, b))
  10.  
  11. main()
Add Comment
Please, Sign In to add comment