Answers for "find any word in list"

0

python find word in list

ls = ['Hello from AskPython', 'Hello', 'Hello boy!', 'Hi']
 
matches = [match for match in ls if "Hello" in match]
 
print(matches)
Posted by: Guest on June-10-2021

Code answers related to "find any word in list"

Python Answers by Framework

Browse Popular Code Answers by Language