By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
Complete the code challenge below. Read the instructions carefully and use the integrated editor on the right to write and run your solution.
Your nightly eval produced a faithfulness mean of 0.62. Last week's baseline was 0.85 ± 0.05. Is that a bad day or an incident? Implement the maths that answers the question.
z_score(current, mean, std) → (current - mean) / std, rounded to 2 decimals. If std is 0, return 0.0.alert_level(z) → "page" when abs(z) >= 3, "warn" when abs(z) >= 2, otherwise "ok".is_worse(current, mean, std) → True when the score is more than 2 standard deviations below the mean, otherwise False.Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.