Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def alarm_clock(day, vacation):
  2. if is_on_vacation == 1:
  3. if day_of_the_week == [1,2,3,4,5]:
  4. day = "10:00"
  5. elif day_of_the_week == [6,7]:
  6. vacation = "Off"
  7. return day
  8. else:
  9. if day_of_the_week == [1,2,3,4,5]:
  10. day = "7:00"
  11. elif day_of_the_week == [6,7]:
  12. day = "10:00"
  13. return day
  14. return vacation
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement