Part of the whole


#1

I am on exercise 4 (Part of the whole ) and so far this is where I am getting the error message "
Oops, try again. get_class_average([alice]) resulted in an error: 'float' object is not callable " . Can someone please tell me where I am going wrong ?

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

`


#2

When i done this exercise, this it what i done:

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

I recommend you get rid of

Hope this helps!:grin: