while, break, and the infinite loop AI ships — step 6 of 9
Claude wrote this and Pyodide will hang if you run it. The loop is supposed
to count down from 5 to 1, but the body never changes count, so the
condition count > 0 stays True forever.
Add the missing line so the loop actually stops, and the script prints
5, 4, 3, 2, 1 each on its own line.
The break is on line 4 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
Claude wrote this and Pyodide will hang if you run it. The loop is supposed
to count down from 5 to 1, but the body never changes count, so the
condition count > 0 stays True forever.
Add the missing line so the loop actually stops, and the script prints
5, 4, 3, 2, 1 each on its own line.
The break is on line 4 — 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.