The sum of scores


no clue

Replace this line with your code. 

def grades_sum(scores):
    for i in scores:
        return total

File "python", line 3
    def grades_sum(scores):
SyntaxError: invalid syntax


please post your full code

a function ends the moment a return keyword is reached, so your function ends in the first run of the loop. To get the correct total, the whole loop needs to finish running


you have to call the function with grades not scores


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.