C4w1-I do not know what is the problem

Welcome to the community.

Please do not post your code on the forum. That’s not allowed by the community standards. I’ll edit your message to remove the code.

You might find this thread useful:

You can find lots of previous posts on the forum by searching for “conv_forward” or “cnn forward”.

Hint: Pay close attention to how you’re using the “stride” variable.