Elementry question on indeces
Thomas A. Bryan
tbryan at python.net
Sun Mar 5 00:03:35 EST 2000
Rick wrote:
[..in a reply to an answer to a sequence slicing question..]
>
> OK, got it....thanks.
>
> I would question why it's done this way, but I guess I should read on.
I often find it convenient that Lst[x:z] covers the same elements as does
Lst[x:y] and Lst[y:z] for any indices 0 <= x <= y <= z <= len(Lst). Perhaps
you'll come to like this feature when you start using it more often in your
Python programs.
Python-was-designed-for-my-convenience-<wink>-ly yours
---Tom
More information about the Python-list
mailing list