BbJLeB

03. Summer Outfit

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