Practice ยท 2 of 2
Debug: The Dead Branch
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Making Decisions: if / else โ Practice