Part of whole


#1



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

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

My code looks right but I keep getting an error


Replace this line with your code.


#2

My code looks like this:
def get_class_average(students):
results=[]
for student in students:
get_average(students)
results.append(get_average(students))
return average(results)


#3

We don't want to pass the entire list, only one student dictionary at a time.


#4

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