[Tutor] more on index handling

Yigal Duppen yduppen at xs4all.nl
Tue Apr 13 15:13:47 EDT 2004


On Tuesday 13 April 2004 18:40, denis wrote:
> Thank you for all these answers about index base 0 in python ; which lead
> to one more question and a comment.
>
> Question : why does python exclude the last index of a slice ? 

There is a nice paper by Dijkstra which explains the different approaches:
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html

YDD
-- 
http://www.xs4all.nl/~yduppen




More information about the Tutor mailing list