title: Can you assign variables in a lambda?
body: <p>I was using a <code>lambda</code> statement to perform math, and happened to repeatedly use one certain value. Therefore I was wondering if it was possible to assign and use a variable within a <code>lambda</code> statement. </p>
  
  <p>I have tried things like:</p>
  
  <pre><code>a = lambda n:(b=3+2*n) #[my math here]
  </code></pre>
  
  <p>However this just raises errors, and I was wondering if there was a way to do this.</p>