Checker is wrong


#1


#2

Checker is right

source: I wrote that particular checker


#3

How come? Can you verify my code please thanks.


#5


#6

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

#7

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


#8

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