If I add print lines, I see the total is as it should be, but I get the error message as below anyway.
Oops, try again. Make sure to print the result of the grades_sum() function.
I’m missing something, but I can’t seem to figure out what.
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grades_sum(scores): total = 0 # assign before referencing for g in scores: total = float(g + total) total = int(total) print total return total