Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def common_elements(s1, s2):
- list = ([x for x in set(s1) if x in set(s2)])
- return list
- s1 = (3, 3, 4, 5)
- s2 = (3, 3, 2, 5)
- print(common_elements(s1, s2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement