Created
July 30, 2014 17:11
-
-
Save hbillings/11dfbddf60da6edad3ba 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
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