Skip to content
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

Table 8.4 Incorrect Index Value/Result #16

Open
PullMyFork opened this issue Jan 27, 2021 · 0 comments
Open

Table 8.4 Incorrect Index Value/Result #16

PullMyFork opened this issue Jan 27, 2021 · 0 comments

Comments

@PullMyFork
Copy link

PullMyFork commented Jan 27, 2021

Fifth row from top (as depicted):

"It's just a flesh sound!".find('u') -> Result == 7

Correct:

"It's just a flesh sound!".find('u') -> Result == 6

This may seem minor but newcomers will already be struggling with the zero-reference concept, so this will not be helpful along that journey.

I also am curious about the final line:

"9".zfill(with=5) -> result == '00009'

Having attempted this in both Python 2 and 3, it seems the correct form would simply be:

"9".zfill(5) -> result == '00009'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant