Output correct, but it keeps saying fail the tests (Course 1 - W4 - "Building your Deep Neural Network: Step by Step")

Hello
The output is correct, but it keeps saying I fail the tests


Can someone help me explains this please?
Thank you

I suspect that there is an error in your code.
I would suggest that you revise your logic and make sure of correctly implementing previous functions.
hope this helps.

@MoHassan : but all previous functions pass the test?

I don’t understand why previous functions pass the test but when it comes to this function this makes previous function error?

if all the previous function passed the test, the error should be from your implementation in this function not from the previous ones.