SyntaxFix
Write A Post
Hire A Developer
Questions
strings = ("string1", "string2", "string3") for line in file: if any(s in line for s in strings): print "yay!"