What version of windows are you using? Are you running it from the console, or an ide?
I'm on Windows 10, with python 3.7.0, and your code works as expected:
I'm on Windows 10, with python 3.7.0, and your code works as expected:
>>> import time >>> for n in range(5): ... print(f"time is {n}", end="\r") ... time.sleep(0.1) ... else: ... print() ... time is 4 >>>