Why does this not print the last element in the list.
>>> a_lst = [1,2,3,4,5,6]
>>> print a_lst[-1]
6
>>> print a_lst[0:-1]
[1, 2, 3, 4, 5]
I can see that if I just do a_lst[-1] it returns the expected last element. But when I try to use it in a range [0:-1] it actually returns the penultimate element?