loops — predict the output7 / 10
loops — read it, predict it, then trust it
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.
Booting Python…
Output
[promptdojo:~]$ _