Design for slices

Gustaf Liljegren gustafl at algonet.se
Wed Jan 31 16:09:34 EST 2001


I'm learning Python and have a question about defining ranges/slices in 
strings. I can't find any defence for what looks like a poor design, so I 
have to ask. Why is the first character in the string x defined as x[0] and 
not x[1]? This looks just like the typical geek thinking that I'm trying to 
avoid with Python.

Gustaf



More information about the Python-list mailing list