Advertisement
Nenogzar

Untitled

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