title: python lambda syntax error
body: <p>I am learning tensorflow to build a neural network, and I have an example code down below:</p>
  
  <pre><code>import tensorflow as tf
  
  # get weight of a layer, and add the l2 regularizer of the weight to the collection of 'losses'
  def get_weight(shape, lambda):
      var = tf.Variable(tf.random_normal(shape), dtype = tf.float32)
      tf.add_to_collection('losses', tf.contrib.layers.l2_regularizer(lambda)(var))
      return var
  </code></pre>
  
  <p>I use python 3.5 to run this script, but I get this:</p>
  
  <pre><code>  File "4.4.2.py", line 4
      def get_weight(shape, lambda):
                                 ^
  SyntaxError: invalid syntax
  </code></pre>