Categories
How to make a condition for time?
The script starts => 5-10 seconds pass => some action occurs. How can this be done?
Answer the question
In order to leave comments, you need to log in
import time time.sleep(5) print("Hello, i waited 5 seconds")
import random import time sec = random.randint(5, 10) time.sleep(sec) print("Hello, i waited 5-10 seconds")
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question