I have a lists:

```
my_list = ['abc-123', 'def-456', 'ghi-789', 'abc-456', 'def-111', 'qwe-111']

bad = ['abc', 'def']

```

and want to search for items that contain the string 'abc' and 'def' (and others in bad). How can I do that?

Almost same question [here](https://stackoverflow.com/questions/4843158/check-in-python-if-a-list-item-contains-a-string).