Python Loop Visualizer

For understanding for loops and range().

for i in range (
Start
,
Stop
,
Step
) :
print(i)

Python range() reminder:

  • range(start, stop) → uses the default step of 1. The step is optional.
  • range(start, stop, step) → lets you choose a custom step (positive or negative, but not 0).
  • In real Python, step = 0 raises: ValueError: range() arg 3 must not be zero.

Output Console

Note: Notice how it starts at 0, jumps by 1, and stops before it reaches 10.