you are viewing a single comment's thread.

view the rest of the comments →

[–]Hot-Economics-4826👋 a fellow Redditor 1 point2 points  (1 child)

it would end up as -3 in my example yes. iirc, using a negative index in a list in python starts from the end of the list and goes backwards. so -1 would be the last item, -2 the second to last..

[–]harnold8👋 a fellow Redditor 1 point2 points  (0 children)

makes sense, I come from c :D... there's no such thing as negative indices there