title: Python, how to unroll tuples in lambda?
body: <p>I have 2 equal-length lists and I am trying to get scalar product of them with, but it does not work this way:</p>
  
  <pre><code>sum(map(lambda a,b: a*b, zip(list1, list2)))
  
  error: TypeError: &lt;lambda&gt;() takes exactly 2 arguments (1 given)
  </code></pre>
  
  <p>Even if this code is not good for my task, is there any way to force lambda to work with tuples for such cases?</p>
  
  <p>i'd like to do something like </p>
  
  <pre><code>lambda x: (a,b)=x;a*b 
  </code></pre>
  
  <p>But it will not work with C-style ';' )</p>
  
  <p>Thank you for answers, still need to learn many things about Python )</p>