Part of the Whole


#1

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

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


#2

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


#3

the what simply breaks


#4

the loop simply breaks*


#5

ok thank you i passed the lesson


#6