Python IDE
| Problem | Examples |
|---|---|
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) → Truesleep_in(True, False) → Falsesleep_in(False, True) → True |
Solution
Try to use the solutions only when needed!