The error is line 25.
Try doing this
total_variance = variance / len(scores)
Also your indentation is a bit off your return statement should be at the same indent level as your for statement
I have solved it.
I wrote grade_variance wrongly instead of grades_variance which the system asks me to do.