3 Answers
+ 2
As Qwertiony has hinted, it has a sleep method.
import time
time.sleep(5) #waits for 5 seconds
+ 1
You can use the sleep() function in the time module. It will pause your Python program for the number of seconds we pass.Â
ex:
import time
# Wait for 5 seconds
time.sleep(5)
# Wait for 300 milliseconds
# .3 can also be used
time.sleep(.300)
0
why wait when you can sleep?