Answers for "how to check if a list contains a word"

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
1

python find string in list

list1 = ["a", "b", "c"]

isBInList = "b" in list1 # True
Posted by: Guest on August-23-2020

Code answers related to "how to check if a list contains a word"

Python Answers by Framework

Browse Popular Code Answers by Language