Issue #23070: Fix a comment in the tutorial.
"Python" has 6 characters, not 7. Reported by Ross Burnett.
This commit is contained in:
parent
558dcf38e6
commit
2338156fa4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue