[docs] comments in documentation misprint

Ruslan Baratov ruslan_baratov at yahoo.com
Mon Jun 10 14:53:39 CEST 2013


Hello, I think I've found misprint in this page:
http://docs.python.org/3/tutorial/introduction.html

>>> word = 'Python'

>>>word[0:2]   # characters from position 0 (included) to 2 (excluded)
'Py'
>>>word[2:5]   # characters from position 2 (included) to 4 (excluded)
'tho'


I think it should be:

>>>word[2:5]   # characters from position 2 (included) to 4 (included)
'tho'

or

>>>word[2:5]   # characters from position 2 (included) to 5 (excluded)
'tho'



More information about the docs mailing list