1str_list = ["one", "two", "three"]
2substr = "wo"
3if any(substr in str for str in str_list):
4 print('Yes!')
1matchers = ['abc','def']
2matching = [s for s in my_list if any(xs in s for xs in matchers)]
3
4Output:
5['abc-123', 'def-456', 'abc-456']