Given these 3 lists of data and a list of keywords:
good_data1 = [\'hello, world\', \'hey, world\'] good_data2 = [\'hey, man\', \'whats up\'] bad_data = [\'h
Are you looking for
any( k in s for k in keywords )
It's more compact, but might be less efficient.