Part of the Whole


I am stuck on this part. Here is my code.

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

Every time I run the code though, I get a message saying oops, try again. Make sure you have defined class_average.


I realize I accidentally typed get class average twice the first time, however, I still don't know what mistake I am making.


should be, results.append(get_average(student))


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