Skip to content

Instantly share code, notes, and snippets.

@bhuiyanmobasshir94
Last active April 26, 2023 09:05
Show Gist options
  • Save bhuiyanmobasshir94/3ae6010a39fed273dd28c06e0357e314 to your computer and use it in GitHub Desktop.
Save bhuiyanmobasshir94/3ae6010a39fed273dd28c06e0357e314 to your computer and use it in GitHub Desktop.
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