promptdojo_

Claude wrote this loop and the last iteration crashes with IndexError: list index out of range. The off-by-one is on line 3 — range(len(words) + 1) walks one past the end of the list.

Fix the off-by-one so the script prints each word, one per line, with no crash. Expected output:

hello
world
fine
The break is on line 3 — 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.

open this same url on a laptop to keep going today.