I am not able to execute what is being asked!



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)
    return average


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)

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


its still not executing


What do you have now?


Did it. no problem now ...Checked it


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