python map() on zipped object
<p>I have two inputs lists <code>a</code> and <code>b</code> and a function which takes two inputs, let's say</p>

<pre><code>def f(x, y): return x*y
</code></pre>

<p>How do I use <code>map()</code> for this setup? I tried</p>

<pre><code>map(f, zip(a,b))
</code></pre>

<p>and got </p>

<blockquote>
  <p>TypeError: f() takes exactly 2 arguments (1 given)</p>
</blockquote>

<p>It makes sense because I need to unpack the zipped input. How can I do that?</p>