I have problem in deep learning specialization - convolutional neural network week 2 last programming assignments course

**In Week 2 Programming Assignment:

Grader says there is unwanted parenthesis. But I couldn’t find it. All tests are passed for all exercises inside jupyter notebook.

I am able to finish the course due to this.**

I don’t know the required structure of the outputs, but from your image number 3, it appears the parenthesis structure is not uniform across different layers. For example, the second element of the first list is [(None, 160, 160, 3)], where as, in the second line, the square brackets around the second element are absent.

I am getting the below error from grader:

Cell #UNQ_C2. Can’t compile the student’s code. Error: SyntaxError(“unmatched ‘)’”, (‘/tmp/student_solution_cells/cell_16.py’, 37, 5, ’ )'))
Traceback (most recent call last):
File “/home/www/app/grading/exceptions.py”, line 112, in handle_solution_errors
yield {}
File “/home/www/app/grading/abstract.py”, line 393, in _grade
context = compiled_code.run(cell_index=cell.index)
File “/home/www/app/grading/submission/compiled_code.py”, line 195, in run
return list(self._code_items.values())[cell_num - 1].run()
File “/home/www/app/grading/submission/compiled_code.py”, line 54, in run
return import_module(self.import_statement, items)
File “/usr/local/lib/python3.8/importlib/_init_.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “<frozen importlib._bootstrap>”, line 1014, in _gcd_import
File “<frozen importlib._bootstrap>”, line 991, in _find_and_load
File “<frozen importlib._bootstrap>”, line 975, in _find_and_load_unlocked
File “<frozen importlib._bootstrap>”, line 671, in _load_unlocked
File “<frozen importlib._bootstrap_external>”, line 839, in exec_module
File “<frozen importlib._bootstrap_external>”, line 976, in get_code
File “<frozen importlib._bootstrap_external>”, line 906, in source_to_code
File “<frozen importlib._bootstrap>”, line 219, in _call_with_frames_removed
File “/tmp/student_solution_cells/cell_16.py”, line 37
)
^
SyntaxError: unmatched ‘)’

issue solved

That’s good news!

For the benefit of others who may find this thread later, can you say a little about how you fixed it?

That is the problem described on this thread. Interestingly we’ve had 3 different students hit exactly this problem in the last 2 or 3 days. One possible theory would be that some university is using this course and maybe there’s a bit of code sharing going on.

1 Like