Answer the question
In order to leave comments, you need to log in
How to make a delay that does not stop the program?
The simplest code example:
import time
def wait():
time.sleep(5)
print(2)
while True:
wait()
print(1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question