lines1 = ['soup', 'butter', 'venison']
lines2 = ['prune', 'rye', 'turkey']
search_strings = ['a', 'b', 'c']
any(s in l for l in lines1 for s in search_strings)
any(s in l for l in lines2 for s in search_strings)
python: check if a line has one of the strings in a list