Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make code to do something for curtain number of seconds python

import time

seconds = 10

end_time = time.time() + seconds
while time.time() < end_time:
    print("This loop will execute for 10 seconds")
 
PREVIOUS NEXT
Tagged: #code #curtain #number #seconds #python
ADD COMMENT
Topic
Name
7+5 =