cara menghapus semua 2 dalam daftar ular python
x = [2, 1, 2]
while 2 in x:
remove(2)
Handsome Hummingbird
x = [2, 1, 2]
while 2 in x:
remove(2)