Temp Check

Write a Python code that takes a floating-point number `temp` representing temperature in Fahrenheit as input and returns:
- "Freezing" if the temperature is less than 32°F.
- "Cold" if the temperature is between 32°F and 50°F (inclusive).
- "Moderate" if the temperature is between 51°F and 70°F (inclusive).
- "Warm" if the temperature is between 71°F and 85°F (inclusive).
- "Hot" if the temperature is above 85°F.
28.5
Total : 0 Discussion
Login