Python If-Elif-Else Builder: Temperature Feedback 🌡️
Understanding the Program Logic
Check a temperature (
temp
) and provide climate feedback:
If temperature > 30 → hot
Else if temperature < 10 → cold
Else → pleasant
Arrange the blocks below:
if
temp > 30:
print("It's a hot day!")
elif
temp < 10:
print("It's quite cold.")
else:
print("Pleasant temperature.")
CHECK
RESET
Your Python Code Output: