python any in string 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 any in string
if any(word in 'some one long two phrase three' for word in list_):