Jak usunąć wszystkie 2 z listy Python
x = [2, 1, 2]
while 2 in x:
remove(2)
Handsome Hummingbird
x = [2, 1, 2]
while 2 in x:
remove(2)