from time import sleep, time
can_run = True
countdown = 2
times = 0
while can_run:
print("countdown is lowering to")
print(countdown)
countdown = countdown - 0.1
sleep(countdown)
times = times + 1
if times == 20:
can_run = False
print("it has stopped")
#if you dont know what it does. give it a try(test)