Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_list = input().split(', ')
- second_list = input().split(', ')
- third_list = []
- for i in first_list:
- for j in second_list:
- if j.find(i) != -1:
- third_list.append(i)
- break
- print(third_list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement