Frustrated with Part of the Whole


get_class_average([alice]) resulted in an error: list indices must be integers, not str

I've been working on this all day and I can't see what's wrong.

def get_class_average(students):
    students = [lloyd, alice, tyler]
    results = []
    for item in students:
    return average(results)


This list should be up with the other data, just below the dictionaries.


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