title: sum each value in a list of tuples
body: <p>I have a list of tuples similar to this:</p>
  
  <pre><code>l = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 0)]
  </code></pre>
  
  <p>I want to create a simple one-liner that will give me the following result:</p>
  
  <pre><code>r = (25, 20) or r = [25, 20] # don't care if tuple or list.
  </code></pre>
  
  <p>Which would be like doing the following:</p>
  
  <pre><code>r = [0, 0]
  for t in l:
    r[0]+=t[0]
    r[1]+=t[1]
  </code></pre>
  
  <p>I am sure it is something very simple, but I can't think of it.</p>
  
  <p>Note: I looked at similar questions already: </p>
  
  <p><a href="https://stackoverflow.com/questions/4663024/how-do-i-sum-the-first-value-in-a-set-of-lists-within-a-tuple">How do I sum the first value in a set of lists within a tuple?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/638048/how-do-i-sum-the-first-value-in-each-tuple-in-a-list-of-tuples-in-python">How do I sum the first value in each tuple in a list of tuples in Python?</a></p>