I can share a sample code, with a few lines to demonstrate the countdown down timer.
import time
# Time time in seconds
t = 10while t:
mins, secs = divmod(t, 60)
timer = '{:02d}:{:02d}'.format(mins, secs)
print(timer, end="\r")
time.sleep(1)
t -= 1
print('Time Up !!')