Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input_line_1 = input().split(', ')
- input_line_2 = input().split(', ')
- result = []
- for s1 in input_line_1:
- if any(s1 in s2 for s2 in input_line_2):
- result.append(s1)
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement