Bootstrap FreeKB - Python (Scripting) - Pause using Sleep
Python (Scripting) - Pause using Sleep

Updated:   |  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 Buy Me A Coffee



Comments


Add a Comment


Please enter da0b02 in the box below so that we can be sure you are a human.