Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- degrees = float(input())
- weather = ""
- if 35 >= degrees >= 26:
- weather = "Hot"
- elif 20.1 <= degrees <= 25.9:
- weather = "Warm"
- elif 15 <= degrees <= 20:
- weather = "Mild"
- elif 12 <= degrees <= 14.9:
- weather = "Cool"
- elif 5 <= degrees <= 11.9:
- weather = "Cold"
- else:
- weather = "unknown"
- print(weather)
Advertisement
Add Comment
Please, Sign In to add comment