Guest User

Untitled

a guest
Jun 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. def coffee():
  2. cups = int(raw_input("How many cups of coffee did you have today? "))
  3. sleep = int(raw_input("How many hours of sleep did you get last night? "))
  4. score = 3*cups+sleep
  5. if score >= 12:
  6. return "super hyper"
  7. elif score >= 6 and score < 12:
  8. return "mellow"
  9. elif score < 6:
  10. return "sluggish"
  11.  
  12. def typeOfDay():
  13. q1=raw_input("The weather was favorable today (enter YES for true, NO for false):")
  14. q2=raw_input("I had a good time with my friends today (enter YES for true, No for false):")
  15. if q1=="YES" and q2=="YES":
  16. return "spectacular"
  17. elif q1=="YES" or q2=="YES":
  18. return "decent"
  19. else:
  20. return "crummy"
  21.  
  22. def main():
  23. c = coffee()
  24. day = typeOfDay()
  25. print "You completed a",day,"day in a",c,"manner!!"
Add Comment
Please, Sign In to add comment