SyntaxError: invalid syntax


#1

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

With the same code I'm getting this error message..
File "python", line 47
For student in students:
^
SyntaxError: invalid syntax


8. Part of The Whole
#2

Python keywords are lowercase.

for student in students:

#3

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