Getting error in L_layers neural network

The error message is telling you that your L_layer_model function returns more than 2 return values. Did you modify that part of the given template code? There should have been no reason to change that behavior.

If you want to get a clean copy and compare, there is a topic about that on the FAQ Thread.