Submission problem: Can't compile the student's code

hello, since yesterday I can not submit my work despite the 4 attempts. here is the message:
Cell #18. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘NoneType’ and ‘NoneType’”)
thanks a lot for your help

I suggest you to start investigate the problem this way, open your notebook on coursera, in the menu bar, click “Kernel” > “Restart & run all”. Then the kernel will restart and your code cells will be run one by one. As the cells finished running, a number will show on the L.H.S. indicating a cell number, follow the number until reaching cell number 18, look for the line that has the symbol “+=”. Check the variables in the line to see why a None value can happen.

thank you for your help

1 Like