Partial Grading in Course 5 Week 1 Assignment 2 Dinosaurus_Island_Character_level_language_model is Failing

Hi, I am able to pass all test cases upto Exercise 3 still when I submit the solution I am getting 0 marks for submission. Please help.

Here is grader response

Exercise 2
Filename: Exercise 2
0/100Score: 0 of 100
Hide grader output
Grader output
Cell #UNQ_C4. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (’/tmp/student_solution_cells/’, 68, 26, ’ single_example = \n’))

To submit your work, you have to have runnable code for all of the parts of the assignment.
You can’t submit just part of the assignment.
There is a syntax error in that function which is causing the grader to crash.

Q1 But what when we are able to solve only some part of assignment and some part is left. Shouldn’t grader give marks to the parts when we have passed some test cases. Is it not possible to grade someone who completes assigment partially? For some assigments in earlier courses I was able to submit part of assignment and yet receive grade.

Q2 Also does the meaning of “you have to have runnable code for all of the parts of the assignment” is that we will be graded when all our solutions are correct?

Also for the code which I have written there was no syntax error when I ran it.

A1. You cannot submit an incomplete notebook. You at least have to get the code to run without syntax errors. Otherwise the grader will crash when it runs your notebook.

A2. You will be graded as long as your code doesn’t make the grader crash. Incorrect results will be graded zero - incomprehensible code will make the grader crash.