human
Check if a Python list item contains a string inside another string
assistant
Here is some code to get a list of items from the list `some_list` that contain string 'abc'

matching = [s for s in some_list if 'abc' in s]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.