SHARE
TWEET

Untitled

a guest Aug 14th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hot = True
  2. cold = False
  3. morning = True
  4. evening = False
  5. night = False
  6.  
  7. #You may modify the lines of code above, but don't move them!
  8. #When you Submit your code, we'll change these lines to
  9. #assign different values to the variables.
  10.  
  11. #Write a program that will recommend a meal based on the
  12. #current weather and time of day. Specifically, the program
  13. #should recommend:
  14. #
  15. # - soup if it's cold and either evening or night
  16. # - a biscuit if it's morning and cold
  17. # - cereal if it's morning and hot, or whenever the time is
  18. #   night
  19. # - pizza whenever it's either evening or night
  20. #
  21. #Write some code below that will print four lines, one for
  22. #each of the four meals. The lines should look like this:
  23. #
  24. #Soup: False
  25. #Biscuit: False
  26. #Cereal: True
  27. #Pizza: False
  28. #
  29. #The values (True and False) will differ based on the
  30. #values assigned to hot, cold, morning, evening, and night
  31. #at the start of the program.
  32.  
  33. #Add your code here!
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top