python wait for x seconds
import time
x = 1 # Put in whatever seconds you want it to wait
time.sleep(x)
python wait for x seconds
import time
x = 1 # Put in whatever seconds you want it to wait
time.sleep(x)
how to make python do something every x seconds
import sched, time
s = sched.scheduler(time.time, time.sleep)
def do_something(sc):
print("Doing stuff...")
# do your stuff
s.enter(60, 1, do_something, (sc,))
s.enter(60, 1, do_something, (s,))
s.run()
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us