4/9 Exam Statistics "The Sum of Scores"


Hey there. I'm currently having trouble with "The Sum of Scores" in "Exam Statistics" of Python. My code, written below, runs and has an error.

Traceback (most recent call last):
File "python", line 12, in
NameError: name 'grade_sums' is not defined

This error does not allow me to complete the lesson. If someone could take a look at let me know what the issue is that would be great. Thanks. :horse_racing:


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

def grades_sum(scores):
    total = 0
    for x in scores:
        total += total+x
    return total

print (grade_sums(scores))




Hi you called your function with another name grade_sums() instead of grade_sum()


Thank you thank you!

I will certainly try it when I get a change. Thank you.