I have to check a lot of worlds if they are in string... code looks like:
if \"string_1\" in var_string or \"string_2\" in var_string or \"string_3\" in var_stri
one more way to achieve this check = lambda a: any(y for y in ['string_%s'%x for x in xrange(0,10)] if y in a)
check = lambda a: any(y for y in ['string_%s'%x for x in xrange(0,10)] if y in a)
print check('hello string_1')