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

raw_text[:99] is 99 characters, not 100, on page 22. #379

Closed
verhas opened this issue Oct 1, 2024 · 1 comment
Closed

raw_text[:99] is 99 characters, not 100, on page 22. #379

verhas opened this issue Oct 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@verhas
Copy link

verhas commented Oct 1, 2024

Bug description

On pg 22 text says the code will print the first 100 chars, but the code is raw_text[:99], which does 99 chars and in the sample there are 99 characters including the terminating space.

What operating system are you using?

None

Where do you run your code?

None

Environment




@verhas verhas added the bug Something isn't working label Oct 1, 2024
@rasbt
Copy link
Owner

rasbt commented Oct 1, 2024

Good catch, thanks. I will make a note to get it updated to "99 characters". Thanks for noting.

@rasbt rasbt closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants