functions — and the most-hallucinated bug ai ships7 / 9
arguments, defaults, and the silent wrong-order bug
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.
Booting Python…
Output
[promptdojo:~]$ _