4/9 The sum of scores


#1

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


grades_sum(scores):
    total = 0.0
    for score in scores:
        total += score
    return total 

print grades_sum(grades)

Please can someone help me. I am getting this error:
File "python", line 4
grades_sum(scores):
^
SyntaxError: invalid syntax


#2

Oooops.... no def

hahaha my bad :grinning:


#4

how did you solve it