Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mmhan
Created February 11, 2014 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmhan/8930152 to your computer and use it in GitHub Desktop.
Save mmhan/8930152 to your computer and use it in GitHub Desktop.
The parameter weekday is True if it is a weekday, and the parameter vacation is True if we are on vacation. We sleep in if it is not a weekday or we're on vacation. Return True if we sleep in.
sleep_in(False, False) → True
sleep_in(True, False) → False
sleep_in(False, True) → True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment