drag to orbit ยท scroll to zoom
โ† Playground

๐Ÿ›ค๏ธ Conveyor Belt ยท for

A fixed row of boxes rolls past the stamper, one by one. When the last one passes, the loop stops โ€” you can count them in advance.

How many boxes (N)
5
current i
0
Set N, then start. Watch i count each box as it gets stamped.
Python code
for i in range(5): stamp(box[i]) # one per box # belt empty โ†’ loop done

๐Ÿ’ก for = you know how many. The belt has N boxes, so it stops after N. (No idea how many? That's the while carousel โ€” it spins until the music stops.)