There are three ways we can use the range function inside for loop in Python.
for index in range(stopIndex):
for index in range(startIndex, stopIndex):
for index in range(startIndex, stopIndex, steps):
https://codeparttime.com/how-to-loop-with-range-function-in-python/