title: TypeError: Reduce() of empty sequence with no initial value
body: <p>I'm currently trying to write a function that will give me a tuple whose 0 index is the amount of lines in that file, and whose 1 index is how many characters are in that file. So far, I have a list of tuples, which looks like this:</p>
  
  <pre><code>mapped = [(1, 50), (1, 11), (1, 58)]
  </code></pre>
  
  <p>The line I'm trying to write is this:</p>
  
  <pre><code>reduce(lambda x:(x[0]+y[0], x[1]+y[1]),(i for i in mapped))
  </code></pre>
  
  <p>If it works correctly, then it should return a tuple of (3, 119). However, I'm getting an error of </p>
  
  <pre><code>TypeError: reduce() of empty sequence with no initial value
  </code></pre>
  
  <p>Can anybody figure out why this is?</p>