Student Becomes the teacher


Oops, try again. get_class_average([alice]) resulted in an error: 'builtin_function_or_method' object has no attribute 'getitem'

It isn't working what do i do halp!

def get_class_average(students):
    for student in students:
    return average(results)


This line is not doing anything. It may be removed.

Change the square brackets to parentheses.

This should be inside the function block so it is reset each call.


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