Last active
August 3, 2022 02:38
-
-
Save thuwarakeshm/c826dca004c19cbaff7ebccfc2f28a26 to your computer and use it in GitHub Desktop.
python-scheduling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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