Skip to content
← Back to Community
Thx Repl Community
Profile icon
pythoncoderNYC

How can I make my program wait 2 seconds before continuing?

Voters
Profile icon
pythoncoderNYC
Comments
hotnewtop
Profile icon
mat1

You can make the program pause for a specified amount of time by importing time at the top of the script and then running time.sleep(seconds) wherever you want to wait.

Profile icon
noah-14

@mat1 I would suggest doing from time import sleep in that case, if you are only using the sleep function