title: How can I increment array with loop?
body: <p>I've got two lists:</p>
  
  <pre><code>listOne = ['33.325556', '59.8149016457', '51.1289412359']
  listTwo = ['2.5929778', '1.57945488999', '8.57262235411']
  </code></pre>
  
  <p>I use len to tell me how many items are in my list:</p>
  
  <pre><code>itemsInListOne = int(len(listOne))
  itemsInListTwo = int(len(listTwo))
  </code></pre>
  
  <p>Then, this is where I get stuck. I want to loop through the list using a while loop and increment the array with each loop. Here is what I tried:</p>
  
  <pre><code>iterations = 0
  
  while iterations &lt; itemsInListOne:
          listOne = listOne[0] + 1
          print iterations
  </code></pre>
  
  <p>The while loop is clearly wrong, but you can see what i'm trying to do. I want to end up with:</p>
  
  <pre><code>listOne[0]
  listOne[1]
  listOne[2]
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT: To better explain this. </p>
  
  <p>I've got a list and I want to loop through the list and automatically create an array which increments with each iteration, for example: </p>
  
  <pre><code>listOne[0] 
  +1
  listOne[1] 
  + 1 
  listOne[2]
  </code></pre>
  
  <p>Hope this makes more sense.</p>