Skip to content

Code Error In Documentation Section - 3.1.2  #124658

@kgothatsontsane

Description

@kgothatsontsane

Documentation

There is a code anomaly which I have found in the Documentation on the following page:
https://docs.python.org/3/tutorial/introduction.html

Under the heading: 3.1.2. Text
There is codeblock that is meant to illustrate how to escape quotes in Python.
Screenshot 2024-09-27 at 10 24 06

The last example in particular looked odd to me and I tried it out on my Python REPL and got the following result, which is contradictory to the example in the documentation.
Screenshot 2024-09-27 at 10 34 02

The version of the documentation I am reading is version 3.12.6:
image

My Python REPL is running version 3.12.1:
image

Any feedback would be appreciated.

I can open a pull request to correct it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions