Issue #23070: Fix a comment in the tutorial.

"Python" has 6 characters, not 7.

Reported by Ross Burnett.
This commit is contained in:
Berker Peksag 2014-12-17 14:56:47 +02:00
parent 558dcf38e6
commit 2338156fa4
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ indices, if both are within bounds. For example, the length of ``word[1:3]`` is
Attempting to use a index that is too large will result in an error::
>>> word[42] # the word only has 7 characters
>>> word[42] # the word only has 6 characters
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: string index out of range