Score → letter bands
Score 92 → Letter A
Branch taken: elif score >= 90
School portals convert numeric scores to A–F. A chain of elif checks from highest threshold down so only one letter prints.
Start from the highest band. First match is the grade.
You convert a numeric score into a grade label (A/B/C/D/F) using if-elif-else checks.
Used in schools, performance dashboards, risk bands, and score-based categorization systems.
When you view grades online, the server receives score = 92 and returns A. Each band (90+, 80+, …) is one elif branch — tested in order.
F incorrectly.