I encountered an error submitting the Pluto’s Poetic Journey code challenge.
Despite the fact that all code parts in Jupiter passed tests, the final submission fails on the 5th task with error:
”
Failed test case: An exception occurred. Expected: The file should be created without exceptions., but got: An exception was raised. Details: invalid mode: ‘# Add your code here’.
”
Has anyone encountered this behavior? I’ve spent way too much time rewriting trivial lines of code and am starting to get disillusioned with the platform.
Hi @AndrewMo ,
It looks like you have given ‘# Add your code here’ as the mode for opening the file. Please see the comment line, it specifies to open the file for writing. So the mode should be “w”
Adding on what @Kic mentioned, something important to keep in mind.
The error you have gotten tells us that you have not implemented the exercise. The skeleton code # Add your code here is still present in your implementation.
You should always work in the notebook with the default name. In this case, it is C1M3_Assignment.ipynb. This is very important for various reasons, one of them being that when you press the “submit” button, that’s the file that goes for grading.
If you have written your code in a notebook with a different name, which I believe is the case here, that does not go for grading. So my guess is, you worked in a notebook with a different name, passed the tests, and pressed submit.