Python menghapus dua indeks pertama
l = [1, 2, 3, 4, 5]
del l[:3] # Here 3 specifies the number of items to be deleted.
Worried Wombat
l = [1, 2, 3, 4, 5]
del l[:3] # Here 3 specifies the number of items to be deleted.