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