8000 fix:correct the comment of a string index example by fancling · Pull Request #83 · trekhleb/learn-python · GitHub
[go: up one dir, main page]

Skip to content

fix:correct the 8000 comment of a string index example #83

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix:correct the comment of a string index example
  • Loading branch information
fancling committed Dec 27, 2023
commit ce3c39d8b858b1e2419fd232882600921b2a5dde
2 changes: 1 addition & 1 deletion src/data_types/test_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def test_string_type():
# start from -1.
word = 'Python'
assert word[0] == 'P' # First character.
assert word[5] == 'n' # Fifth character.
assert word[5] == 'n' # Sixth character.
assert word[-1] == 'n' # Last character.
assert word[-2] == 'o' # Second-last character.
assert word[-6] == 'P' # Sixth from the end or zeroth from the beginning.
Expand Down
0