range is used with for loops to iterate over each element in arrays, strings and other data structures.
range
Visit the following resources to learn more: