I've got two lists:
listOne = ['33.325556', '59.8149016457', '51.1289412359']
listTwo = ['2.5929778', '1.57945488999', '8.57262235411']
I use len to tell me how many items are in my list:
itemsInListOne = int(len(listOne))
itemsInListTwo = int(len(listTwo))
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:
iterations = 0while iterations < itemsInListOne:listOne = listOne[0] + 1print iterations
The while loop is clearly wrong, but you can see what i'm trying to do. I want to end up with:
listOne[0]
listOne[1]
listOne[2]
Thanks in advance.
EDIT: To better explain this.
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:
listOne[0]
+1
listOne[1]
+ 1
listOne[2]
Hope this makes more sense.