You have used Round brackets in layer_dims(l) while initializing b. layer_dims is a list, use square brackets.
layer_dims(l)
b
layer_dims