i have a quite complex problem, but here is the "simplest version" so you can better understand it.
import time
for i in range(10):
time.sleep(1)
print('{}\r'.format(i), end="")
and here everything works fine, the problem comes when i try to make a countdown
import time
for i in range(10):
time.sleep(1)
print('{}\r'.format(10-i), end="")
the output is 10... then 90... 80... 70 and so on, it seems like if the second cipher of the 10 is not cancelled. can someone tell me why?