New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #85832
Labels
3.8
only security fixes
Comments
Hi, I found a problem with this address In here
>>> word[0:2] # characters from position 0 (included) to 2 (excluded)
'Py'
>>> word[2:5] # characters from position 2 (included) to 5 (excluded)
'tho' In the second example word[2:5] becomes 'hto' |
weagjoigjowe
mannequin
changed the title
Problem in tutorial/introduction.html#strings
fix
Aug 30, 2020
weagjoigjowe
mannequin
changed the title
Problem in tutorial/introduction.html#strings
fix
Aug 30, 2020
Closing this as not a bug since the example seems to be correct. Feel free to reopen with more details if needed. |
I agree with xtreak. I guess you probably misspelled the initial word: >>> 'Python'[2:5] # same as the tutorial
'tho'
>>> 'Pyhton'[2:5] # misspelling
'hto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: