import time time.sleep(5)   # Delays for 5 seconds. You can also use a float value. 

Read more of this post