Multiple Substrings in String - Python -
this question has answer here:
why wouldn't code return "true" if of substrings located in larger somestring?
substring1 = "foo" substring2 = "text" somestring = "texting" if ((substring1 or substring2) in somestring): print "true" i've looked any() function don't think it's i'm looking for.
Comments
Post a Comment