Human: Removing an element from a list based on a predicate Assistant: 
Here is some code to removing an element from a list based on a predicate 'X' or 'N'

[x for x in ['AAT', 'XAC', 'ANT', 'TTA'] if 'X' not in x and 'N' not in x]

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