Part of the Whole(list must be integers not str)


#1


for the last part it keeps saying the there’s error: list indices must be integers, not str
what’s wrong with my code?
thank you.







#2

so on line 47, you overwrite your list with an integer and then you are appending nothing to the results list which is no longer a list?

you must append get_average(student) to results list


#3

like this?


#4

if you know would remove line 47 yes, given that overwrites the list with an integer (student average grade)

and you need to return the average of results, not just results. See instructions


#5

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