Part of the Whole


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

This code is not working error is get_class_average([alice, lloyd]) returned 91.15 instead of 85.85 as expected.


a function ends the moment a return keyword is reached, if the return keyword is reached in a loop, the loop simply breaks


the what simply breaks


the loop simply breaks*


ok thank you i passed the lesson