python sleep
import time print("Print now") time.sleep(4.2) print("Printing after 4.2 seconds")
sleep python
#!/usr/bin/python3 import time print ("Start : %s" % time.ctime()) time.sleep( 5 ) print ("End : %s" % time.ctime())
Source: www.tutorialspoint.com
how to use the sleep function in python
import time #Your code here before the sleep function time.sleep("""The amount you want to sleep for in seconds""") #Your code here after the sleep function