Part of theWhole


File "python", line 55
SyntaxError: 'return' outside function

Replace this line with your code. 

results = []
for student in students:
    return average(results)


You are close; little things holding you up:
1. what word do you need before defining a function?
2. what punctuation mark is used after naming a function?
3. You used two different names for your function.


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