title: How to get the sum of a list of numbers with recursion?
body: <p>I want to sum numbers with a recursive function, i.e.</p>
  
  <pre><code>getSum([1, 2, 3, 4, 5]) 
  </code></pre>
  
  <p>should return 1+2+3+4+5 == 15 </p>
  
  <p>I'm not an expert in recursive functions, I've tried something like:</p>
  
  <pre><code>def getSum(piece):
      for i in piece
          suc += getSum(i)
  </code></pre>
  
  <p>The problem is that I can't loop through integers. I'm sure this is a quite easy task but I really can't figure it out.</p>