mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +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:
parent
558dcf38e6
commit
2338156fa4
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::
|
||||
|
||||
>>> 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…
Add table
Add a link
Reference in a new issue