Python semua kecuali elemen terakhir
# all but the last
for x in y[:-1]
-
# all but the last
for x in y[:-1]