dkyoseff

First Steps in Coding - More Exercises / 10. Weather Forecast - Part 2

Jul 5th, 2022 (edited)
296
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None
  1. temp = float(input())
  2. if 26.00 <= temp <= 35.00:
  3.     print('Hot')
  4.  
  5. elif 20.1 <= temp <= 25.9:
  6.     print('Warm')
  7.  
  8. elif 15.00 <= temp <= 20.00:
  9.     print('Mild')
  10.  
  11. elif 12.00 <= temp <= 14.9:
  12.     print('Cool')
  13.  
  14. elif 5.00 <= temp <= 11.9:
  15.     print('Cold')
  16.  
  17. else:
  18.     print('unknown')
RAW Paste Data Copied