I'm trying to make countdown program with python. I want to turn that into it removes last printed line, so i can print new second.
import time
def countdown():
    minute = 60
    while minute >= 0:
        m, s = divmod(minute, 60)
        time_left = str(m).zfill(2) + ':' + str(s).zfill(2)
        print(time_left)
        time.sleep(1) 
        minute -= 1
countdown()
I am running python 2.7.13 on Raspberry Pi.
 
     
    