Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def coffee():
- cups = int(raw_input("How many cups of coffee did you have today? "))
- sleep = int(raw_input("How many hours of sleep did you get last night? "))
- score = 3*cups+sleep
- if score >= 12:
- return "super hyper"
- elif score >= 6 and score < 12:
- return "mellow"
- elif score < 6:
- return "sluggish"
- def typeOfDay():
- q1=raw_input("The weather was favorable today (enter YES for true, NO for false):")
- q2=raw_input("I had a good time with my friends today (enter YES for true, No for false):")
- if q1=="YES" and q2=="YES":
- return "spectacular"
- elif q1=="YES" or q2=="YES":
- return "decent"
- else:
- return "crummy"
- def main():
- c = coffee()
- day = typeOfDay()
- print "You completed a",day,"day in a",c,"manner!!"
Add Comment
Please, Sign In to add comment