Part of the Whole


Error Messages
get_class_average([alice,lloyd]) returned 91.15 instead of 85.85

Goal: Calculate the class average

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


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


simple fix. thank you!