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

๐Ÿค– Fetch & Process

for x in items is a robot arm: fetch one โ†’ process it โ†’ drop it in the bin, then repeat. It never jumps ahead โ€” one item at a time, until the tray is empty.

Loop right now
fetch idle process keep
The tray holds 4 fruits. Press Run โ€” the arm takes one at a time.
What the loop produced
fetchedโ€”
processedโ€”
run resultโ€”
return valueโ€”
Python code
out = []
for x in items:
  out.append(x.upper())

๐Ÿ’ก Run result = everything that happened while the loop ran (the bin's contents). Return value = what the loop hands back when it's done. A bare for loop hands back None โ€” the list itself is the result.