Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Tutorial: Example input is equivalent to output #136703

Closed as not planned
Closed as not planned
Labels
docsDocumentation in the Doc dir
@vasan-nz

Description

@vasan-nz

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

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp