Cell #21. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘NoneType’ and ‘NoneType’”)
I went through all the FAQs and I couldn’t find a solution to my issue. I even replaced all my ‘+=’ logic with a ‘=’ a ‘+’ b logic but it is still failing to compile.
Did you leave any of the “None” statements in the notebook?
Generally, you can’t grade an incomplete notebook (except for cells that are marked as “Optional”).
Thanks for the response Tom. Apparently, I remembered that I had renamed the file to a different name while downloading it onto my computer which also changed its online name. I reverted the file name back to the default name and the checks then ran fine.
Yes, the grader always checks the notebook with the default file name, regardless of the name of the notebook you have open when you click the “Submit” button.