Skip to main content

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

Back to lesson: Practice: Making Decisions: if / else โ€” Practice