Advertisement
gen4i4

Weather Forecast - Part 2

Mar 7th, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. Cel = float(input())
  2.  
  3.  
  4. if Cel >=26 and Cel <=35:
  5.     print('Hot')
  6. elif Cel >= 20.1 and Cel <=25.9:
  7.     print('Warm')
  8. elif Cel >= 15 and Cel <= 20:
  9.     print('Mild')
  10. elif Cel >= 12 and Cel <= 14.9:
  11.     print('Cold')
  12. elif Cel >= 5 and Cel <= 11.9:
  13.     print('Cold')
  14. else:
  15.     print('unknown')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement