Return Indentation 8/9


#1

Here is my code:

def get_class_average(students):
    results = []
for student in students:
    results.append(get_average(student))
return average(results)

I'm getting the error message, " File "python", line 49
SyntaxError: 'return' outside function". What is wrong?


#2

your indentation is wrong

as the error message says, your return is outside the function, but so is your loop 'for'.


#3

this post talks about what you need to know.