time

Pause your program
from time import sleep     #This needs to go at the top of the program
print("Boo")
sleep(5.0)                          #5 second pause
print("Boo")

This would output as
>>>
Boo
(There would be a 5 second pause here, nothing would be printed)
Boo
>>>
This command is very useful if you want to wait until a sound has finished playing
See winsound

Comments