get_class_average([alice]) resulted in an error


#1

I am getting the exact same error and that does not fix the problem. It must have something to do with the loop calling the list str"Alice" somewhere instead of her float values. it's saying that it is expecting a number, not a string. the fact that lloyd gets processed correctly is also confusing because it should be exactly the same as Alice


Why am I getting, "Oops, try again. get_class_average([alice]) resulted in an error: list indices must be integers, not str"?
#2

Please post your code, so I can help you.


#3

All we need now is a look at your code and a link to the exercise. Please edit your post, or include the details in a new reply. Thank you.