human
Filtering a list of strings based on contents
assistant
Here is some code to filtering out strings that contain 'ab' from a list of strings `lst`

[k for k in lst if 'ab' in k]

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