Last active
June 1, 2016 11:03
-
-
Save birchtree02/951a26e6f0493e64b643694530e0f7ff to your computer and use it in GitHub Desktop.
https://repl.it/CXU6/4 created by birchtree02
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
# alarm | |
from time import gmtime, strftime | |
def alarm(): | |
while True: | |
if strftime("%H:%M", gmtime()) == alarmtime: | |
print('wake up') | |
print('\007') | |
break | |
alarmtime = input('When would you like to be woken up? (hh:mm) | |
alarm() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment