AI4M course 2 W:3 excercise:1

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

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)

Thanks @Yousef_Sadegheih yeah it works, issue has been resolved

1 Like