Answers for "sleep on python 3"

23

python time delay

import time
while True:
    print("This prints once a minute.")
    time.sleep(60) # Delay for 1 minute (60 seconds).
Posted by: Guest on March-15-2020
1

from time import sleep, time

from time import sleep
sleep(0.5)
Posted by: Guest on December-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language