if a given string contains something from a list python code example
Example 1: check if word contains a word in a list python
if any(word in 'some one long two phrase three' for word in list_):
Example 2: python check if string
type('hello world') == str
# output: True
type(10) == str
# output: False