Help with C1_W3, Exercise 2 Assertion error

{moderator edit: code removed}

It says my answer is correct on the output but the assertion is coming out as an error, what am I doing wrong?

First, please don’t post your code on the forum. That’s not allowed by the Code of Conduct.

Second, are you absolutely certain that z_pred should have the same data type as y? I’ve not seen anyone use np.zeros_like() in this function before.

oh I’m sorry, I’m new. where should I be posting the code if I need help on it? Also I fixed the error but thank you.

You should never post your code. You can post (via screen captures) any error messages or asserts that you might see. That’s usually enough to diagnose a problem.

If a mentor needs to see your code, they’ll contact you via a private message with instructions.

sure! thanks for the help!