Python (Scripting) - Pause using Sleep

by
Jeremy Canfield |
Updated: April 01 2024
| Python (Scripting) articles
time.sleep can be used to pause a script for x seconds.
#!/usr/bin/python
import time
print("I'm tired, I should take a nap")
time.sleep(5)
print("I'm done sleeping")
Did you find this article helpful?
If so, consider buying me a coffee over at