mengindeks python pertama dan terakhir

l = [1,2,3,4,5]
l[::len(l)-1]
Sleepy Shark