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


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.


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


like this?


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


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