import time def sleep_time(x): # x is amount of time time.sleep(x) sleep_time(10) # in this case 10 seconds delay.