Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # if_substrings_in_list_a_in_list_b.py
- a = [2,3,4,6,7]
- b = [1,2,5,6,9]
- print [i for i in a if i in b]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement