I need to make a timer, that replaces the output. For example:
5
This then replaces with 4
after one second and so on.
This no longer works:
I have made a timer already as follows, but it doesn't do what I expected:
from time import sleep
for i in range(4, -1, -1):
print(i, end=" ")
sleep(1)
The actual results are:
4 3 2 1 0
I'm using maCOS.