C5 W2 A2: Submitted but got 0 after submission problem for programming assignment

Exercise 5:
grader output:
Cell #2. Can’t compile the student’s code. Error: SyntaxError(‘invalid syntax’, (‘/tmp/student_solution_cells/cell_2.py’, 9, 1, ‘|\n’))

But I was able to run every cell without syntax error when I ran them.