Hier mal ein bißchen erweitert:
Code: Alles auswählen
In [1]: def remove_all(iterable, deletion):
...: it = type(iterable)
...: return it(elem for elem in iterable if elem != deletion)
...:
In [2]: remove_all((3,2,4,6,4,3,2,5,3,2,1), 3)
Out[2]: (2, 4, 6, 4, 2, 5, 2, 1)