Part of the Whole


#1


https://www.codecademy.com/en/courses/python-beginner-en-qzsCL/1/4?curriculum_id=4f89dab3d788890003000096

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

Goal: Calculate the class average


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


#2

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


#3

simple fix. thank you!


#4