1 | initial version |
This may be because you are initializing the index variable inside the for loop with a value of 0. Make sure that you are declaring the index variable outside of the loop and assigning it a value before the loop begins. Additionally, be sure to check that your loop is iterating over the correct range of values.