Advertisement
JeXerT

Summer outfit

Jan 23rd, 2022
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. degrees = int(input())
  2. time_of_the_day = input()
  3. outfit = ""
  4. shoes = ""
  5. if time_of_the_day == "Morning":
  6. if 10 <= degrees <= 18:
  7. outfit = "Sweatshirt"
  8. shoes = "Sneakers"
  9. elif 18 < degrees <= 24:
  10. outfit = "Shirt"
  11. shoes = "Moccasins"
  12. elif degrees >= 25:
  13. outfit = "T-Shirt"
  14. shoes = "Sandals"
  15. elif time_of_the_day == "Afternoon":
  16. if 10 <= degrees <= 18:
  17. outfit = "Shirt"
  18. shoes = "Moccasins"
  19. elif 18 < degrees <= 24:
  20. outfit = "T-Shirt"
  21. shoes = "Sandals"
  22. elif degrees >= 25:
  23. outfit = "Swimsuit"
  24. shoes = "Barefoot"
  25. elif time_of_the_day == "Evening":
  26. outfit = "Shirt"
  27. shoes = "Moccasins"
  28. print(f"It's {degrees} degrees, get your {outfit} and {shoes}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement