Ddimov90

weather_forecast_part_two_10_03

Sep 21st, 2025
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | Source Code | 0 0
  1. degrees = float(input())
  2. weather = ""
  3. if 35 >= degrees >= 26:
  4.     weather = "Hot"
  5. elif 20.1 <= degrees <= 25.9:
  6.     weather = "Warm"
  7. elif 15 <= degrees <= 20:
  8.     weather = "Mild"
  9. elif 12 <= degrees <= 14.9:
  10.     weather = "Cool"
  11. elif 5 <= degrees <= 11.9:
  12.     weather = "Cold"
  13. else:
  14.     weather = "unknown"
  15.  
  16. print(weather)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment