Skip to content

Instantly share code, notes, and snippets.

@hbillings
Created July 30, 2014 17:11
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 hbillings/11dfbddf60da6edad3ba to your computer and use it in GitHub Desktop.
Save hbillings/11dfbddf60da6edad3ba to your computer and use it in GitHub Desktop.
items = {
"orange": "It's an orange hat day!",
"blue": "It's a blue hat day!",
"jersey": "Time to bust out the Cutler jersey!",
"otherwise": "Take a day off and wear something else."
}
def what_to_wear(day):
orange = False
blue = False
if day % 3 == 0:
orange = True
if day % 7 == 0:
blue = True
if orange:
return items["jersey"]
else:
return items["blue"]
if orange and not blue:
return items["orange"]
else:
return items["otherwise"]
day = input("What day of football season is it? ")
print what_to_wear(int(day))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment