Created
February 13, 2014 19:08
-
-
Save JakenHerman/8981666 to your computer and use it in GitHub Desktop.
alarm_clock on Coding Bat
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
| __author__ = 'Jaken' | |
| def alarm_clock(day, vacation): | |
| if not vacation and day >=1 and day <=5: | |
| return "7:00" | |
| elif (not vacation) and (day == 0 or day == 6): | |
| return "10:00" | |
| elif vacation and day == 0 or day ==6: | |
| return "off" | |
| elif vacation and day >=1 and day <=5: | |
| return "10:00" | |
Houssamt290
commented
Feb 14, 2022

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment