Gradient descent optional lab problem

pls explain the meaning of this code.

Im not sure how i is changing here but you should understand that math.ceil rounds the result upwards to the nearest integer. The print line prints the cost at the iteration, the gradients of cost with regards to weights and bias and finally the weights and bias.