Hi,

Can anyone tell me why this does not give the correct result?

As far as I can tell it should give me the correct result but it gives me this “You did not print the correct average. Double-check your code and make sure you print the average!”

grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]

def grades_sum(scores):

total = 0

for i in scores:

total +=i

return total

def grades_average(grades_input):

average = grades_sum(grades_input)/float(len(grades_input))

return average

print grades_average(grades)

Thanks in advance!