Answers for "datetime.datetime.sleep"

37

sleep in py

import time

print("Print now")
time.sleep(4.2)
print("Printing after 4.2 seconds")
Posted by: Guest on July-27-2020
0

waiting in python. time , sleep

from time import sleep, time
sleep(1) # it is gonna sleep 1 sec. you can change the time if you want

# --- there are two ways you can do it. you can choose whatever you want

import time 
time.sleep(1) # it is gonna sleep 1 sec. you can change the time if you want
Posted by: Guest on February-07-2022

Python Answers by Framework

Browse Popular Code Answers by Language