# C2\_W3\_Assignment - Exercise 3 - AssertionError

**URL:** <https://community.deeplearning.ai/t/c2-w3-assignment-exercise-3-assertionerror/478785>\
**Category:** Calculus for Machine Learning and Data Science\
**Tags:** week-module-3\
**Created:** [October 27, 2023, 2:17pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-exercise-3-assertionerror/478785 "2023-10-27T14:17:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ixcel87](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@ixcel87](https://community.deeplearning.ai/u/ixcel87)\
**Post date:** [October 27, 2023, 2:17pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-exercise-3-assertionerror/478785/1 "2023-10-27T14:17:06Z")

</div>

Hello,

Can someone please let me know if these are the correct assert statements for exercise 3:

 ![image](https://global.discourse-cdn.com/dlai/original/3X/c/b/cbbf430db6e552ba4ecd88302b00077a1fede6f5.png)

I am receiving the below AssertError, but i do believe my assignments were correct.

 ![image](https://global.discourse-cdn.com/dlai/original/3X/9/7/9742eebb44076f71104a52a113acd5035eff5c97.png)

---

<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:** [October 27, 2023, 10:45pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-exercise-3-assertionerror/478785/3 "2023-10-27T22:45:11Z")

</div>

The asserts in your notebook are incorrect.

Here is what is in the master notebook in the course repo:  
 ![image](https://global.discourse-cdn.com/dlai/original/3X/4/9/493996b429af5553b6dcf4871511be96aecbc50a.png)

These asserts match the shapes given in the doctext:  
 ![image](https://global.discourse-cdn.com/dlai/original/3X/7/3/73d54eee8a04954b55e26d23b8cd592a0ce5d025.png)

Somehow, the asserts in your notebook are incorrect.

---

<div class="post-metadata">

**Author:** ![ixcel87](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@ixcel87](https://community.deeplearning.ai/u/ixcel87)\
**Post date:** [October 30, 2023, 4:35pm UTC](https://community.deeplearning.ai/t/c2-w3-assignment-exercise-3-assertionerror/478785/4 "2023-10-30T16:35:17Z")

</div>

@TMosh Thank you so much, I mistakenly modified while testing.  
I was able to submit and receive a 100% on my assignments.
