Save & Submit Code
Oops, try again. You did not print the correct average. Double-check your code and make sure you print the average!
I can't find what is wrong with this code.
grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5] def grades_sum(scores): total = 0 for score in scores: total += score print total return total def grades_average(grades): sum_grades = grades_sum(grades) average = sum_grades / float(len(grades)) print average return average