newbie string question

Don Low mt at
Fri Jun 21 04:45:49 CEST 2002

There's probably a very simple explanation, but I can't see it for now, so
bear with me.

>>>pystr = 'Python'
>>>pystr = [5]
>>>pystr [2:5]

The question is, why isn't pystr [2:5] 'thon' instead of 'tho'. Could
somebody explain?



More information about the Python-list mailing list