Sep-13-2019, 02:19 AM
the negative index in your case goes from -4 to -1. To encompass the whole list it would have to go to zero. However you cannot do this with negative indexes. The way to display this would be:
spam[-4:]
It is easier to use the positive indexes.
John
spam[-4:]
It is easier to use the positive indexes.
John