Last active
April 26, 2023 09:05
-
-
Save bhuiyanmobasshir94/3ae6010a39fed273dd28c06e0357e314 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 schedule | |
import time | |
def print_notification(message): | |
print(message) | |
# Schedule a reminder to be sent every day at 9am | |
schedule.every().day.at('09:00').do(print_notification, message='Remember to take your medication!') | |
# Loop to run scheduled tasks | |
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