|
I don't understand why my answer is being graded incorrectly when my output matches exactly what's in the video. The only thing I'm doing different is instead of
|
|
It is a bit scary that that doesn't pass given the difference it produces is quite small... I'm guessing the grading scripts are looking for exact outputs as opposed to parsing the data or looking at the returned values. Maybe a note for graders in the future (especially on homework): instead of making a filter function that prints the value, instead have us make one that returns the intermediate values and then compare the values to the expected within some epsilon. I see no good reason why this shouldn't pass. |