Unit 7 · Lesson 2
Build the idea
Start with the concept and its key vocabulary.
A step changes the loop variable by an amount other than one. Positive steps count upwards and negative steps count downwards. ERL still includes its to value when the step reaches it. Python range(start, stop, step) still excludes stop, even with a negative step.
The amount added to the loop variable after each iteration.
Moving from a smaller value to a larger value.
Moving from a larger value to a smaller value.
A logic error caused by starting or stopping one position too early or too late.