Skip to content

REPL: Prompt obscures chars for print with end="," #136553

@novocode

Description

@novocode

Documentation

(A clear and concise description of the issue.)
Learning python for the first time. Got to section 3.2 on the tutorial.pdf document.

First while loop, with Fibonacci, in section, no problem. Works the same.

However, when I get to the last while loop for Fibonacci, I get a different result.

The output in the document shows: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987,

However, my output is: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987,

Inclusion of end somehow removed the first 0, 1. Not sure why. Tutorial and console is 3.13.3.

I'll provide screenshots later tonight (if needed).

Any help figuring out why is welcomed. And yes, I did double check the syntax was correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowsdocsDocumentation in the Doc dirtopic-replRelated to the interactive shell

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions