#507 · Python Basics · Beginner · 25 XP · about 3 min
A weather app describes the temperature with one word. Write weather_word(celsius) that returns that word for a temperature in degrees Celsius:
'freezing''cold''mild''warm''hot'weather_word(-5) # returns 'freezing' weather_word(15) # returns 'mild' weather_word(30) # returns 'hot' weather_word(9.9) # returns 'cold'
celsius can be a whole number or a decimal, and it can be negative.
First solves only, ranked by stars and then time.