promptdojo_

Arguments, defaults, and the silent wrong-order bug — step 7 of 9

Cursor wrote this and it crashes before it even runs. The traceback says SyntaxError: non-default argument follows default argument.

Defaulted parameters have to come after the required ones. Reorder the parameters on line 1 so the function definition is valid and the call on line 4 still works.

The break is on lines 1, 4 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.