Answers for "check if string contains any word in list python"

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_):
Posted by: Guest on July-11-2020
4

how to check if a string contains a word python

if word in mystring: 
   print('success')
Posted by: Guest on December-18-2020

Code answers related to "check if string contains any word in list python"

Python Answers by Framework

Browse Popular Code Answers by Language