Skip to content

Instantly share code, notes, and snippets.

@schifano
Last active August 29, 2015 13:55
Show Gist options
  • Save schifano/8778776 to your computer and use it in GitHub Desktop.
Save schifano/8778776 to your computer and use it in GitHub Desktop.
My solutions for CodingBat Python Warmup-1. This is used to document my initial attempts and improved attempts.
# sleep_in
'''
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.
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment