8/9 get_class_average not calculating correctly


#1

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

error message I’m getting is “get_class_average([alice, lloyd]) returned 91.15 instead of 85.85 as expected”

Why isn’t it calculating the average?


#2

A return here will be catastrophic.There is your problem.


#4