Advertisement
dkyoseff

10. Weather Forecast - Part 2 AND

Jul 5th, 2022
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. degree = float(input())
  2.  
  3. if degree >= 26.00 and degree <= 35.00:
  4. print("Hot")
  5. elif degree >= 20.10 and degree <= 25.90:
  6. print("Warm")
  7. elif degree >= 15.00 and degree <= 20.00:
  8. print("Mild")
  9. elif degree >= 12.00 and degree <= 14.90:
  10. print("Cool")
  11. elif degree >= 5.00 and degree <= 11.90:
  12. print("Cold")
  13. else:
  14. print("unknown")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement