I have completed the A/B Testing assignment of Probability & Statistics for Machine Learning & Data Science course, but when I submit I get the following error on all the exercises: There was a problem compiling the code from your notebook. Details:
invalid syntax (, line 160)
My answers are correct and I get the expected result when running my code but I am still unable to complete the course because of this issue.
Please provide immediate assistance on how I can complete the course.
The most likely cause for this type of error is due to how the grader processes your notebook before grading it.
The grader copies-out the graded functions and evaluates them separately.
The process that it uses for copying your code is not very robust.
So if you made any changes to the function’s whitespace (like adding or removing the indentation or new lines around the opening or closing parenthesis), this can cause a runtime syntax error.
So check your code carefully, and see if you have any lines that contain only a single parenthesis. Reformatting that line of code might fix the issue.