Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # any_in_list_bool.py
- a = ['a', 'b', 'c', '123']
- str = "xyz123.py"
- print any(x in str for x in a)
- str = "xyz.py"
- print any(x in str for x in a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement