Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def listInter(lst1, lst2):
- return set(lst1).intersection(lst2)
- print(listInter([1, 7, 8, 10], [3, 4, 7, 8]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement