title: <lambda>() missing 1 required positional argument: 'z' with lambda and reduce
body: <p>I was trying to understand how <code>lambda</code> and <code>reduce()</code> works. I tried these examples but not able to understand why this is giving me the error. Can someone please explain how it is being executed?</p>
  
  <pre><code>&gt;&gt;&gt; functools.reduce(lambda x,y:x+y, range(10))
  45
  </code></pre>
  
  <p>This works fine. But when I tried this, It gives me error:</p>
  
  <pre><code>&gt;&gt;&gt; functools.reduce(lambda x,y,z:x+y+z, range(10))
  Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  TypeError: &lt;lambda&gt;() missing 1 required positional argument: 'z'
  </code></pre>