import time cando = True number = 10 while cando: print(number) number = number - 1 time.sleep(1) if number == 0: cando = False