C4 W1 CNN Forward Pass : conv_forward (Dimensions)

I can say directly that

does not look right. Try and read the comments for what each loop is trying to achieve, and also what your function expects as input, i.e., conv_single_step.