I can pass all test in my notebook but it fails to score when submitting the assignment. Grader Output states : Cell #UNQ_C5. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, …
It looks UNQ_C5 has issue but I cannot resolve it myself as it can pass the related test. I hope you may help.
I attached my code here (Solution code removed by staff, as posting it publicly is against the honour code)
Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
I shall take a look.
When you reply back, kindly tag me in the post so that I’m notified.
I still fails. The latest Grader Output still shows: Cell #UNQ_C5. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (’/tmp/student_solution_cells/cell_24.py’, 49, 5, ’ ,\n’))
though I have tried to remove all possible “print” statements at my best effort.
Any way to refresh the whole notebook and so I re-enter my work again? I just wonder if any original code I have modified that makes the problem.
In addition, it looks very strange if it is only one my exercise gets problem but I don’t score any.
I still fails. The latest Grader Output still shows: Cell #UNQ_C5. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (’/tmp/student_solution_cells/cell_24.py’, 49, 5, ’ ,\n’))
though I have tried to remove all possible “print” statements at my best effort.
How to refresh the whole notebook and so I re-enter my work again? I just wonder if any original code I have modified that makes the problem.
In addition, it looks very strange if it is only one my exercise gets problem but I don’t score any.
Try refreshing your workspace, the instructions to which can be found in the first week of the course, before the first assignment. Use option 2. If the problem still remains, let me know, and also share the lab ID again.
as said : “Try refreshing your workspace, the instructions to which can be found in the first week of the course, before the first assignment….”
In short, rename your current notebook which is the default name. Them, go to upper right corner [Help] you will find [Get Latest Version], then you get the fresh new one notebook of default name.