Can you help me with this python exercise?
<p>I want to write a function that takes a list of numbers and returns the cumulative sum; that is, a new list where the ith element is the sum of the first i+1 elements from the original list. For example, the cumulative sum of [1, 2, 3] is [1, 3, 6].</p>

<p>Here is my code so far:</p>

<pre><code> def count(list1):
     x = 0
     total = 0
     while x &lt; len(list1):
         if x == 0:
             total = list1[0]
             print total
             x = x +1
         else:
             total = list1[x] + list1[x -1]
             print total
             x = x + 1
     return total 

print count([1, 2, 3, 4, 7])
</code></pre>

<p>HOWEVER, it is not working. </p>

<p>Can you tell me what I am doing wrong? I worked on this for quite some time now. </p>

<p>thanks so much!</p>

<p>Luke</p>
