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

**URL:** <https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962>\
**Category:** Calculus for Machine Learning and Data Science\
**Tags:** week-module-1\
**Created:** [February 21, 2024, 11:43pm UTC](https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962 "2024-02-21T23:43:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelrhman\_Mohamed3](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Abdelrhman\_Mohamed3](https://community.deeplearning.ai/u/Abdelrhman_Mohamed3)\
**Post date:** [February 21, 2024, 11:43pm UTC](https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962/1 "2024-02-21T23:43:12Z")

</div>

Week 1

 ![Screenshot 2024-02-22 013605](https://global.discourse-cdn.com/dlai/original/3X/8/b/8b41cbe8bd526ac3c90439281267844fac06bfa7.png)

Why does this error appear? although all the answers are correct, is there a solution?..

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [February 21, 2024, 11:52pm UTC](https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962/2 "2024-02-21T23:52:18Z")

</div>

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.](https://community.deeplearning.ai/t/c2-w1-assignment-problem-w-exercise-4/507740)

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [February 22, 2024, 12:21am UTC](https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962/3 "2024-02-22T00:21:06Z")

</div>

I agree with @paulinpaloalto - generally an error about the number of positional arguments means one of your files is obsolete (a .py file or the .ipynb notebook).

---

<div class="post-metadata">

**Author:** ![Abdelrhman\_Mohamed3](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Abdelrhman\_Mohamed3](https://community.deeplearning.ai/u/Abdelrhman_Mohamed3)\
**Post date:** [February 22, 2024, 12:23am UTC](https://community.deeplearning.ai/t/calculus-course-from-the-solution-of-machine-learning-there-is-an-error-in-the-first-week-assignment/575962/4 "2024-02-22T00:23:56Z")

</div>

Thank you, the problem was solved after following the steps
