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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)