Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to maker loops coun t in second in pytho

import time #import the necessary library

sec = 0 #define the varieble that will store the amount of seconds

while True:
    print(sec) #prints the seconds
    time.sleep(1) #time.sleep(amount of seconds) the delay
    sec = sec + 1 # adds the time passed to the counter
 
PREVIOUS NEXT
Tagged: #maker #loops #coun #pytho
ADD COMMENT
Topic
Name
4+5 =