I am not able to execute what is being asked!


#1



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

Not able to execute.

It should be executed properly.

Replace this line with your code. 
def get_class_average(students):
    for student in students:
        results = []
        average = get_average(student)
        results.append(average)
    return average


#2

You should move yourresults=[] outside the loop as your results will be emptied each time you loop.
I feel like you have assigned average as a function in a prevous lesson. Try just
results.append(get_average(student)) OR change average to something else like

        avg= get_average(student)
        results.append(avg)

and then return average(results) as that is what the instructions are saying.


#3

its still not executing


#4

What do you have now?


#5

Did it. no problem now ...Checked it


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.