Multiple value checks using ‘in’ operator (Python)

if any(s in line for s in ('string1', 'string2', ...)):

Leave a Comment