Dapatkan setiap item tetapi item terakhir dari daftar Python
x = [1, 2, 3, 4]
#same array, but the last item.
notLast = x[0:-1]
Aggam R.
x = [1, 2, 3, 4]
#same array, but the last item.
notLast = x[0:-1]