# AI4M course 2 W:3 excercise:1

**URL:** <https://community.deeplearning.ai/t/ai4m-course-2-w-3-excercise-1/264689>\
**Category:** AI for Medical Prognosis\
**Tags:** week-module-3, week-module-2\
**Created:** [January 29, 2023, 9:40am UTC](https://community.deeplearning.ai/t/ai4m-course-2-w-3-excercise-1/264689 "2023-01-29T09:40:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rehan\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rehan\_Ahmed](https://community.deeplearning.ai/u/Rehan_Ahmed)\
**Post date:** [January 29, 2023, 9:40am UTC](https://community.deeplearning.ai/t/ai4m-course-2-w-3-excercise-1/264689/1 "2023-01-29T09:40:02Z")

</div>

I am getting error on first exercise even though expected answer is same

Error : ( AssertionError: Not all tests were passed for fraction\_rows\_missing. Check your equations and avoid using global variables inside the function. )  
I tried to figure out what is variable I am using causing error but didnot figure out @Mubsi can you please help me

lab ID : xjxrswlgmyyg

---

<div class="post-metadata">

**Author:** ![Yousef\_Sadegheih](https://avatars.discourse-cdn.com/v4/letter/y/87869e/32.png) [@Yousef\_Sadegheih](https://community.deeplearning.ai/u/Yousef_Sadegheih)\
**Post date:** [January 29, 2023, 9:40pm UTC](https://community.deeplearning.ai/t/ai4m-course-2-w-3-excercise-1/264689/2 "2023-01-29T21:40:08Z")

</div>

Hi @Rehan_Ahmed,

Thanks for sharing your problem. As it has been mentioned in the comment section of the function, the output should be in float format. If you cast the output variable to float, you will pass all the test cases.

Let me know if the issue has been resolved or not.

Best of luck,  
Yousef (AI4M mentor)

---

<div class="post-metadata">

**Author:** ![Rehan\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Rehan\_Ahmed](https://community.deeplearning.ai/u/Rehan_Ahmed)\
**Post date:** [January 30, 2023, 7:13am UTC](https://community.deeplearning.ai/t/ai4m-course-2-w-3-excercise-1/264689/3 "2023-01-30T07:13:36Z")

</div>

Thanks @Yousef_Sadegheih yeah it works, issue has been resolved
