8/9 Help please!


What am I doing wrong ??
Here is my code(my indentation is right):
results = []
students = [lloyd, alice, tyler]

def get_class_average(students):
for indi in students:
return average(results)


"Oops, try again. get_class_average([lloyd]) returned 85.85 instead of 80.55 as expected"


You have to move definition of results array to the get_class_average function to wipe out content of array at the beginning of every function execution.


that was the problem... thanks !


You're very welcome :smile: