The use of 'inc = mini_batch_size'

In Deep Learning Specialization, Course 2, Week 2, Programming Assignment: Optimization Methods, in the 8th cell, the function random_mini_batches has been defined.
There is a line at the end of the section ‘# Step 1: Shuffle (X, Y)’ written this way:

 inc = mini_batch_size

I thought I will need this variable when I am completing the definition of the random_mini_batches function but I completed the definition without using this variable even once and all tests got passed !
Here are my questions:

  1. What is the use of this ‘inc’ variable?
  2. What does ‘inc’ stand for at all? I have not heart heard of this word in whole the course videos I have seen up to now. What does it mean?

I think it’s short for “increment”. They just give you that as a suggestion and a shorter variable name to use in place of mini_batch_size but it’s perfectly fine if you do it your own way and don’t use the variable that they defined. The grader does not do any source code analysis: it just runs your function with test inputs and examines the results. As with pretty much any algorithm, there are lots of ways to write correct code to implement it.

1 Like