Advertisement
veronikaaa86

02. Summer Outfit

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