mirror of
https://github.com/python/cpython.git
synced 2025-11-17 01:25:57 +00:00
Issue #23070: Fix a comment in the tutorial.
"Python" has 6 characters, not 7. Reported by Ross Burnett.
This commit is contained in:
commit
64c8914048
1 changed files with 1 additions and 1 deletions
|
|
@ -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::
|
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):
|
Traceback (most recent call last):
|
||||||
File "<stdin>", line 1, in <module>
|
File "<stdin>", line 1, in <module>
|
||||||
IndexError: string index out of range
|
IndexError: string index out of range
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue