Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def alarm_clock(day, vacation):
- if is_on_vacation == 1:
- if day_of_the_week == [1,2,3,4,5]:
- day = "10:00"
- elif day_of_the_week == [6,7]:
- vacation = "Off"
- return day
- else:
- if day_of_the_week == [1,2,3,4,5]:
- day = "7:00"
- elif day_of_the_week == [6,7]:
- day = "10:00"
- return day
- return vacation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement