8/9 get_class_average([alice]) resulted in an error: 'function' object has no attribute 'getitem , code included :D


#1

this is my code
this is the error msg i get : get_class_average([alice]) resulted in an error: ‘function’ object has no attribute ‘getitem’


#2

here:

results.append(get_average[x])

why do you use square brackets ([])? square brackets are for accessing lists/strings by index or dictionary by key, get_average is none of those


#3

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