I'm looking for a way to check if an string contains anywhere in it, a list item
test = ['he', 'she', 'them']
string = 'hello'
if any(test in s for s in string):
print 'yes'
I try this, and since 'he' is in 'hello' it should print yes, but i get
TypeError: 'in <string>' requires string as left operand, not list
any help?