W4 1st Programming Assignment - Some Confusion with the labeling

Hi,

On the cell with def initialize_parameters_deep(layer_dims), L is defined as the number of layers including the input layer.

On the cell with def L_model_forward(X, parameters), L seems to be the number of layers excluding the input. That’s because it’s derived from parameters which already excludes the input layer.

I eventually figured out that they’re different despite using the same term layers, but I wonder if anybody else found it confusing initially.

Hi, welcome to the community.
This is something that has been brought up by past learners of the course. Perhaps, it will be updated in a new version of the assignment. Thanks for voicing it out.