Advertisement
SpasSpasov

Untitled

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