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.
⌘↵ runs the editor.read, then continue.
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.
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.