I am making a timer and it works great. The only problem is that every time a second passes, it prints the time left in seconds in a new line. How do I make it so that instead of printing a new line it just changes what is displayed in the current line?
This is what I have...
import time
t = int(input("Time (in seconds): "))
while t > 0:
time.sleep(1)
t -= 1
print(t)
print("TIME DONE")