I cleared the kernel before re-running all the cells. Made sure I got ‘All tests passed’ before submitting the assignment. Still got only a 41.
Kernel → restart and clear all output
Cell → run all
Also printed the values that the grader was using and did some basic math on at least one of the samples to make sure the calculation was correct. See screenshots below.
I updated the code to print values used by grader and included that in the screenshots of my original msg. While I don’t know for which data set the grader is expecting the results provided in the feedback, but I do see the expected results for a dataset (as can be seen in the screenshots of my previous msg).
If I recall correctly, you cannot see the results for the grader’s test cases - because it uses an entirely different execution environment. Its outputs are not output to your browser - all you see are the grader’s error messages and results.