Checker is wrong



Checker is right

source: I wrote that particular checker


How come? Can you verify my code please thanks.



Your function will start producing incorrect results when calling it multiple times in succession with different inputs

For example:

print get_class_average([alice])  # OK, assuming function wasn't called before
print get_class_average([lloyd])  # won't be correct


Ok got it thanks so much.
The content of the list doesn't return to empty when multiple function calls happened.

Found the problem and solution wrong position of results[] thanks for the help


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