Suppose I\'ve the following list:
list1 = [1, 2, 33, 51] ^ | indices 0 1 2 3
How do I obtain the
I guess you want
last_index = len(list1) - 1
which would store 3 in last_index.
last_index