Part of the Whole


#1

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

def get_class_average(students):
results=[]
def get_class_average(students):
results = []
for student in students:
results.append(get_class_average(student))
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.


#2

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


#3

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


#4

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