Sichanov

qw

Jan 24th, 2021
133
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. outfit = ''
  4. shoes = ''
  5. if time_of_day == 'Morning':
  6.     if 10 <= degrees <= 18:
  7.         outfit = 'Sweatshirt'
  8.         shoes = 'Sneakers'
  9.     elif 18 < degrees <= 24:
  10.         outfit = 'Shirt'
  11.         shoes = 'Moccasins'
  12.     elif degrees >= 25:
  13.         outfit = 'T-Shirt'
  14.         shoes = 'Sandals'
  15. elif time_of_day == 'Afternoon':
  16.     if 10 <= degrees <= 18:
  17.         outfit = 'Shirt'
  18.         shoes = 'Moccasins'
  19.     elif 18 < degrees <= 24:
  20.         outfit = 'T-Shirt'
  21.         shoes = 'Sandals'
  22.     elif degrees >= 25:
  23.         outfit = 'Swim Suit'
  24.         shoes = 'Barefoot'
  25. elif time_of_day == 'Evening':
  26.     outfit = 'Shirt'
  27.     shoes = 'Moccasins'
  28. print(f"It's {degrees} degrees, get your {outfit} and {shoes}.")
  29.  
Advertisement
Add Comment
Please, Sign In to add comment