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.
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 grades_sum(scores) print (grade_sums(scores))