Hello, I got all tests passed in this assignment but still got 0 mark after submission. Here is the feedback “Cell #12. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for -: ‘NoneType’ and ‘float’”,)”. Can anyone please tell me what should I do? The document is been updated today and I got the announcement after opened it.
Kindly make sure your “if” condition in the second “for” loop of ex 3 is correct.
Try this. And if this doesn’t work, let me know.
Thank you, sir. The problem is salved. When I reopened the file just now, I found that the code I saved before disappeared. When I refilled the code and submitted it, I got full marks. So I guess the reason may be that the update a few hours ago did not work.
1 Like
Cell #12. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for -: ‘NoneType’ and ‘float’”,)
I passed all the tests. I don’t know which cell is 12. I thought it was a test cell in EX 2 after restarting and executing all cells.
So I am stumped on this one.