how to remove a term from a list in python code example Example: remove element from list >>> a = [0, 2, 3, 2] >>> a.remove(2) >>> a [0, 3, 2]