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.