How can I remove all instances of an element from a list in Python?

If you want to modify the list in-place,

a[:] = [x for x in a if x != [1, 1]]

Leave a Comment