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

Python • Re: print .. end="" not working

$
0
0
This works ok for me

Code:

from datetime import datetimeprint ("hello")print (datetime.now(), end="")print ("world")
it gives

Code:

hello2025-07-02 19:43:03.734022world

Statistics: Posted by neilgl — Wed Jul 02, 2025 6:43 pm



Viewing all articles
Browse latest Browse all 9497

Trending Articles