Course3_week2_assignment issues

I am facing this issue…I don’t know why? I also try the code provided in the hints but results remained the same. Anyone who can help me in cracking this assignment

Hello @Muhammad_Azhar_Ghaur,

Finding the cause of your code’s problem and implementing your function is part of the assignment. Since the error message indicates that your function can’t compute the answer correctly, I suggest you to follow these code debugging steps. The main idea is that you give a set of simple inputs to the function, then add some printing lines for inspecting the progress of the function to find out which code line goes wrong. This process will take you quite some time but will be useful for debugging your own code in the future.