title: What is the problem with this simple code using map function in python?
body: <p>Code is as follows:  </p>
  
  <pre><code>def func(i,j):
      return i+j
  
  m = list(product(range(5),range(7)))
  print(m)
  x = map(func,m)
  list(x)
  </code></pre>
  
  <p>Error :</p>
  
  <pre><code>[(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (0, 6), (1, 0), (1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 0), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6), (3, 0), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6), (4, 0), (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6)]
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-181-fdda131ed5e8&gt; in &lt;module&gt;()
  
  
  
        5 print(m)
        6 x = map(func,m)
  ----&gt; 7 list(x)
  
  TypeError: func() missing 1 required positional argument: 'j'
  </code></pre>
  
  <p>How to pass each pair in <code>m</code> through <code>func</code>. I don't want any for loop.</p>