W1 gradient checking

In the week 1 assignment on gradient checking, for the final n dimensional gradient checking function, I keep getting the following error
There is a mistake in the backward propagation! difference = 0.9726013107256283
Error: Wrong output
0 Tests passed
1 Tests failed
I have tried various changes and only the difference varies but the test case always fails. I have gone over the code with a fine-tooth comb and just don’t know what to do. I have been stuck here for the past three days.

Someone, please help!

Fixed by @rajeevanand.

The instructions tell you there are two errors in backward_propagation_n. You can either fix both of them or ignore them, but fixing just one causes the tests to fail :frowning:

Good luck with the rest of the course :slight_smile:

Dear Mentors,

I am trying to run the backprop for gradient check but I am getting wrong output. Although this exercise is ungraded, yet I want to know whether backprop works or not in this case. Thank you in advance!