Course3_week2_assignment issues

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.

Cheers,
Raymond