Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lowering the time.countdown python

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)        
 
PREVIOUS NEXT
Tagged: #lowering #python
ADD COMMENT
Topic
Name
8+1 =