Very strange output?

Hi there, i’m a newbie in Python so i apologize if my question is silly.

In the shell i write a very simple line of code but the output is really strange. Here follow the screen:

Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

print(“Hello”,“World”,end=“$$$”)
o World$$$

If i use Python 3.11.9 i get
Hello World$$$>>>

is this normal?
thanks

1 Like

Formatting your code would be great, but I suppose your output looks like this:

Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

>>>print(“Hello”,“World”,end=“$$$”)
Hello World$$$
>>>

If so, that’s how it’s supposed to look.

@JoBe Where do you see Hell in their output?

I suppose they forgot to add it, as i’m not aware of any print bugs in 3.13.7.

Surely they copied&pasted it and it’s this:

>>> print(“Hello”,“World”,end=“$$$”)
>>> o World$$$
1 Like

Then it must be a bug, I don’t see anything wrong with the given code

Let me explain:

  1. i’m using
    Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32

  2. my code is:
    ’print(“Hello, World”,end=“$$$”)’

  3. i get this output:
    o, World$$$

no mistake in copy&paste.
If i put this code:

print(“12345678”,end=“$$$”)

i get
5678$$$

I don’t know what is eating the first 4 chars…. may it’s a problem of my machine but Ruby shell for example has no problems… ad no problem in python 3.11

Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32Type “help”, “copyright”, “credits” or “license” for more information.

print(“123456789”,end=“$$$”)
123456789$$$>>>

cheers

This is a known bug with the new REPL on Windows, see [GH-128067].([Windows] Python 3.13 New REPL prompt swallows characters with print(..., end=" ") · Issue #128067 · python/cpython · GitHub)

4 Likes

Ah, ok. I’ll wait for the fix.

Thx.

Hello, @Rojzhack, and welcome to the Python community!

We hope you enjoy learning Python.

In order to fully prepare for participating in the discussions here, please see the following pages for information that may enhance your benefit from those discussions:

The first of those two pages offers important information about how to format Python code and output for correct display, if you post such content while asking and answering questions.

Please notice that the quotes do not display correctly in the code that you posted. You may need to take a close look to see that the quotes are slightly tilted and stylized. If anyone attempts to copy, paste, and execute that code as it is, it will raise a SyntaxError. Also important is that if any code that includes indentation is posted without formatting, that indentation, as well as other details, would not display correctly, so please format all posted code for proper display.

We look forward to discussing Python with you here in the future!

I think it is because this output contains a “\r” which causes the “Hell” part of “Hello” to be over written by “\r>>> “.