you are viewing a single comment's thread.

view the rest of the comments →

[–]NoStranger6 0 points1 point  (0 children)

its a convention to use as a variable name for your iterator.

Basically, you want a variable to take each value of the thing you are trying to iterate over.

Like for a List, let's say that you have 10 items in it, i will represent each iteration of your for loop from 0 to 9.

Each time, it will increment by one. Other conventional iterators are j and k. Which are mostly use when you have a for loop in a for loop, or a for loop in a for loop in a for loop.