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
Another approach to list comprehension is numpy:
>>> import numpy >>> a = [1, 2, 3, 4] >>> list(numpy.remove(a, a.index(3))) [1, 2, 4]