Assume you have a list
>>> m = [\'a\',\'b\',\'c\']
I\'d like to make a new list n that has everything except for a given
n
There is a simple way to do that using built-in function :filter .
Here is ax example:
a = [1, 2, 3, 4] b = filter(lambda x: x != 3, a)