how to check the list contains the word p and other in python code example
Example: check if word contains a word in a list python
if any(word in 'some one long two phrase three' for word in list_):
if any(word in 'some one long two phrase three' for word in list_):