Part of the whole - built in class function?


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:
    return average(results)



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


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


Ok. Dumb mistake. Thanks!