Part of the whole - built in class function?


#1



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

Instead of using an item from the class list, which I intended to do, class is a built-in function. Is there any way for me to get around this?


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

Thanks!


#2

don't you want to loop over students? for student in students, i don't understand why you use class there


#3

i think you wanna iterate in students list , not in class list ( does not exist )


#4

Ok. Dumb mistake. Thanks!