SHARE
TWEET

corrected

a guest Jan 28th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. degrees = int(input())
  2. time_of_day = input()
  3.  
  4. outfit = ""
  5. shoes = ""
  6.  
  7. if time_of_day == "Morning":
  8.     if 10 <= degrees <= 18:
  9.         outfit = 'Sweatshirt'
  10.         shoes = "Sneakers"
  11.     elif 18 < degrees <= 24:
  12.         outfit = "Shirt"
  13.         shoes = "Moccasins"
  14.     else:
  15.         outfit = "T-shirt"
  16.         shoes = "Sandals"
  17.  
  18. elif time_of_day == "Afternoon":
  19.     if 10 <= degrees <= 18:
  20.         outfit = "Shirt"
  21.         shoes = "Moccasins"
  22.     elif 18 < degrees <= 24:
  23.         outfit = "T-shirt"
  24.         shoes = "Sandals"
  25.     else:
  26.         outfit = "Swim Suit"
  27.         shoes = "Barefoot"
  28.  
  29. else:
  30.     outfit = "Shirt"
  31.     shoes = "Moccasins"
  32.  
  33. print(f'It\'s{degrees}degrees, get your{outfit} and {shoes}.')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top