title: What does 'IndexError: list index out of range' in Python mean?
body: <p>im a beginner programmer and I don't know what this error means: 'IndexError: list index out of range'. It refers to the last line of my code. Thanks in advance for your help.</p>
  
  <pre><code>def sumaCuadrado(division3):
      suma = []
      if division3 == []:
          return [suma]
      else:
          suma = [division3[0]]
          return [suma] + [sumaCuadrado(division3[1:])]
  </code></pre>