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

๐Ÿ” for loop ยท two ways

Same belt, same stamper. Only one thing changes: what the loop hands you each turn โ€” the item itself, or its index number.

Loop style
each turn hands you: โ€”
Pick a loop style, then run it down the belt.
Python code

๐Ÿ’ก for x in items gives you the thing: "apple", "banana", "cherry".