W4_A1_Number of layers defined confusing

In the week 4 programming assignment 1, the term “number of layers” is used differently from that in the course lecture.

In the assignment, the number of layers includes the input layer:
L = len(layer_dims) # number of layers in the network

In the course lecture, the number of layers doesn’t include the input layer.

I suggest changing the description in the programming assignment to be consistent with that in the course lecture.

Yes, that’s a good point. This has been reported already quite a while ago, but they have not done anything about it yet. I think it’s clear enough: you just need to pay attention to how L is used in the programming assignment, remembering to deal with the way indices work in python (0 based of course).