GeneralCody (5) [Avatar] Offline
#1
I see your point in illustrating the indexes, but if I had never programmed in Python, I think it all would make more sense if you added:

1. myList[-1] 'Always refer to the last index of a sequence'
2. When slicing lists, the number before the colon is inclusive (gets evaluated) and the one after is exclusive (is not evaluated)

Then it gets easier to understand the illustration as well...

Just my 2 cents...
naomi.ceder (134) [Avatar] Offline
#2
Re: 3.3.2 Introduction to the list structure
Thanks for the suggestion. I agree that it wouldn't hurt to mention both of those.

Cheers,
Vern