Loops — read it, predict it, then trust it — step 7 of 10
Claude wrote a loop that's supposed to print 1, 2, 3, 4, 5 (one per line)
but it stops at 4. This is the most common loop bug AI ships.
Fix line 1 so the loop prints all five numbers.
The break is on line 1 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
Claude wrote a loop that's supposed to print 1, 2, 3, 4, 5 (one per line)
but it stops at 4. This is the most common loop bug AI ships.
Fix line 1 so the loop prints all five numbers.
The break is on line 1 — but read the whole snippet first.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.