Calculus course from the solution of machine learning there is an error in the first week assignment

I did not have that problem. Are you sure you didn’t change the definition of the function? Or modify the test file?

Actually there are a number of threads about this problem. It means you have an old copy of the notebook or an old copy of the utility file that has the test cases. Please see this thread for instructions.