Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6960

Python • print .. end="" not working

$
0
0
I want to suppress the newline that normally occurs at the end of a Python 3 print statement such as

Code:

print({datetime.now()}, end="")
but any variation I try either generates an error or has no effect at all. What is the correct method to print without generating the newline at the end?

Statistics: Posted by jlfasig — Wed Jul 02, 2025 5:57 pm — Replies 2 — Views 67



Viewing all articles
Browse latest Browse all 6960

Trending Articles