Grade Every Student, Not Just One

Fix a loop that never advances and an out-of-order if/elif chain.

A beginner Linux challenge worth 3 points. Solve it hands-on in a real Linux environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: /home/labuser/lab/grades.py should turn every student's score into a letter grade, but the loop never moves past the first student and the grading conditions are checked in the wrong order.

Task: Fix grades.py so it loops over every student and writes the correct letter grade for each of Ana (A), Ben (B), Cleo (C), and Dee (F). Run check when ready.