Skip to content

Instantly share code, notes, and snippets.

@thuwarakeshm
Last active August 3, 2022 02:38
Show Gist options
  • Save thuwarakeshm/c826dca004c19cbaff7ebccfc2f28a26 to your computer and use it in GitHub Desktop.
Save thuwarakeshm/c826dca004c19cbaff7ebccfc2f28a26 to your computer and use it in GitHub Desktop.
python-scheduling
import time
import schedule
def say_hello():
print("Hello World!")
schedule.every(5).seconds.do(say_hello)
while True:
schedule.run_pending()
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment