title: Calculate the sum of every 5 elements in a python array
body: <p>I have a python array in which I want to calculate the sum of every 5 elements. In my case I have the array <code>c</code> with ten elements.  (In reality it has a lot more elements.)</p>
  
  <pre><code>c = [1, 0, 0, 0, 0, 2, 0, 0, 0, 0]
  </code></pre>
  
  <p>So finally I would like to have a new array (<code>c_new</code>) which should show the sum of the first 5 elements, and the second 5 elements</p>
  
  <p>So the result should be that one  </p>
  
  <pre><code>1+0+0+0+0 = 1
  2+0+0+0+0 = 2
  
  c_new = [1, 2]
  </code></pre>
  
  <p>Thank you for your help
      Markus</p>