1# To check if a certain element is contained in a list use 'in'
2bikes = ['trek', 'redline', 'giant']
3'trek' in bikes
4# Output:
5# True
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']