I am aware that this has been posted many times, but I can't find a working solution for my problem. Here is my script:
from time import sleep
x = 100
for i in range(0, 100):
print(x, end="\r")
x -=1
sleep(1)
When I run this it prints:
100
990
980
970
except on one line and the text gets replaced and it continues. I want it to do this:
100
99
98
97
on one line and it goes all the way to zero and the text gets replaced. How can I do this?