title: sum of squares recursion
body: <p>I have to write a recursive function sumSquares() that takes a non-negative (>= 0) integer n as a parameter and returns the sum of the squares of the numbers between 1 and n. Example:</p>
  
  <pre><code>&gt;&gt;&gt;sumSquares(2)
  5
  &gt;&gt;&gt;sumSquares(3)
  14
  </code></pre>
  
  <p>This is what I have so far:</p>
  
  <pre><code>def sumSquares(n):
      if n==0:
          return 0
      else:
          return sumSquares(n-1)+sumSquares(n-1)
  </code></pre>
  
  <p>Can I also have an  explanation of what you did, I'm still in the process of learning recursion, and it would help a lot. Thanks.</p>