Advertisement
mark79

Summer Outfit

May 12th, 2019
661
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. temperature = int(input())
  2. part_of_the_day = input()
  3.  
  4. outfit = "Shirt"
  5. shoes = "Moccasins"
  6.  
  7. if part_of_the_day == "Morning":
  8.     if 10 <= temperature <= 18:
  9.         outfit = "Sweatshirt"
  10.         shoes = "Sneakers"
  11.     elif temperature >= 25:
  12.         outfit = "T-Shirt"
  13.         shoes = "Sandals"
  14. elif part_of_the_day == "Afternoon":
  15.     if temperature >= 25:
  16.         outfit = "Swim Suit"
  17.         shoes = "Barefoot"
  18.     elif temperature > 18:
  19.         outfit = "T-Shirt"
  20.         shoes = "Sandals"
  21.  
  22. print(f"It's {temperature} degrees, get your {outfit} and {shoes}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement