Practice · 2 of 2
Debug: The Dead Branch
CHALLENGE
Difficulty: beginner+25 XP
This classifier has a bug: the second branch can never run. Reorder or fix the conditions so each score range reports correctly — under 60 "cold", 60–79 "warm", 80+ "hot" for function temp(score).
Rules:
- All three results reachable.
- Keep it as chained if / else if / else.
Press Submit to check your solution.
Back to lesson: Practice: Making Decisions: if / else — Practice