I reached the final assignment-Candy Analysis for AI Python for beginners, I completed all the exercises and passed all checkpoints,but found that the assignment cannot be graded, I guess maybe I delete some formulas at the back-end. Can anyone help?
Hi @Cat3,
Firstly, I noticed you have several copies of the notebook within your workspace. Please use and work in the notebook titled C1M4_Assignment.ipynb, because that’s the notebook that goes for grading when you click on submission.
I took a look at your notebook, C1M4_Assignment.ipynb, and noticed that you are not passing all of the tests. Your exercise 4 fails.
Please fix your mistake and try submitting again.
Let me know how it goes.
Best,
Mubsi
Hi @Mubsi - I am having a similar issue. In Exercise 4: The Top Candy Leaderboard, I import the helper function: import ex4_helper_functions. I then use get_top_candies but fail the test. I corrected by using from ex4_helper_functions import get_top_candies, which then returns the right table. But, that fails the test because it says I am not supposed to use a from function.
Please start a new thread for your question. This thread is quite cold.
Hi @Natalie_Elliott! Try this approach — keep the import as import ex4_helper_functions (not the from version), then call it as ex4_helper_functions.get_top_candies() with the full module prefix. The grader expects the full module reference, not the direct import. Give that a try and let us know if it works!
Hi @Natalie_Elliott,
Please follow as Guru_Sudharshan suggested.
And more importantly, also follow what TMosh requested as well.
I’m going to close this thread now.