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

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

$
0
0
Are you perhaps thinking of 'f' strings? :

Code:

from datetime import datetimeimport timewhile True:    print(f'now: {datetime.now()}', end='\r')    time.sleep(1.0)

Statistics: Posted by dBerriff — Sat Jul 12, 2025 8:50 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles