Created
February 11, 2014 06:26
-
-
Save mmhan/8930152 to your computer and use it in GitHub Desktop.
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
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