DLS 5 W2 A2 Emojify UNQ_C5

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)

Hi @cyli.laps,

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.

Thanks,
Mubsi

Hi @Mubsi
my Lab ID is wsefvuot

Thanks a lot.

Hi @cyli.laps,

Please make sure you don’t have any print statements added by yourself before submitting the assignment.

I look at your assignment, everything seems to be working fine.

Best,
Mubsi

Hi Mubsi,

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.

Looking forward to your help. Thanks.

hi @Mubsi

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.

Looking forward to your help. Thanks.

Hi @cyli.laps,

This is on my radar. I shall get back to you on this as soon as possible.

Please understand, I get many requests for help, and I try to help them all as fast as I can.

I shall respond to you soon.

Thanks,
Mubsi

Hi @cyli.laps,

I can’t seem to find the issue in your notebook.

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.

Best,
Mubsi

Thanks Mubsi,

after I get the new fresh notebook and replicate the same answer codes, the grader works.

it looks grading will check those un-scored cells and I might have modified/erased some.

Hii @cyli.laps,
How you got the fresh NoteBook?

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.