title: Adding Consecutive integers in Python, with a twist
body: <p>Here is my original code:</p>
  
  <pre><code>x = input("Please input an integer: ")
  x = int(x)
  i = 1
  sum = 0
  while x &gt;= i:
      sum = sum + i
      i += 1
  print(sum)
  </code></pre>
  
  <p>Here is what the second part is: </p>
  
  <p><b>b) Modify your program by enclosing your loop in another loop so that you can find consecutive sums. For example , if 5 is entered, you will find five sum of consecutive numbers so that:</b></p>
  
  <pre><code>1 = 1
  1 + 2 = 3
  1 + 2 + 3 = 6
  1 + 2 + 3 + 4 = 10
  1 + 2 + 3 + 4 + 5 = 15
  </code></pre>
  
  <p>I have been stuck on this for 3 days now, and I just can't understand how to do it. I have tried this but to no avail.</p>
  
  <pre><code>while x &gt;= i:
      sum_numbers = sum_numbers + i
      past_values = range(i)
      for ints in past_values:
          L = []
          L.append(ints)
          print(L, "+", i, "=", sum_numbers)
      i += 1
  </code></pre>
  
  <p>Can anyone just help steer my in the correct direction? BTW. it is python 3.3</p>