Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python : a counter

import time
from time import sleep, time

can_run = True
the_number = 0

end_number = 11 #you can change the number to be last counted

while can_run:
    print(the_number)
    sleep(1)
    the_number = the_number + 1
    if  the_number == end_number: 
        can_run = False
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #python #counter
ADD COMMENT
Topic
Name
5+8 =