Hey Dumuz, you should be reading this as:
for i in range(start_value, ending_value, step_size)
where step_size
represents how much the i
will increase by each iteration. So in the example provided, the for loop would go from 2 to 8 in increments of 2.
For comparison, when iterating through an array you would use:
for i in [2, 8, 2]:
Note the []
instead of the ()
used in the range iteration. This would then create the output you were expecting.