Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Description
Hello, I found a small issue in the Python tutorial under section 3.1.2 Text at:
Python tutorial section 3.1.2
I noticed in the examples about quoting strings, some lines like these appear twice:
'"Isn\'t," they said.''"Isn\'t," they said.'
At first glance, this looks like a duplicate. But from the context, I think the first line shows the string literal with escape characters (what you write in code), and the second line shows how Python displays the string value in the interpreter (the output).
While this is accurate, it might be a bit confusing for beginners since the two lines look identical, but one is code and the other is output.
Also, in the later example with print(), it’s shown that output can look different from the string literal, which is helpful.
Maybe adding a clearer label or explanation in this part to highlight which line is code and which is output would help avoid confusion.
Thanks for considering this suggestion!
Metadata
Metadata
Assignees
Projects
Status