check word in list contains ponctuation 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 contains one of characters list
if any(ext in url_string for ext in extensionsToCheck):
print(url_string)