functions — and the most-hallucinated bug ai ships7 / 9
functions and the missing return
Cursor wrote a function that prints the doubled number instead of returning it.
The caller on line 5 needs the value to do math with. Right now result is None
and line 6 crashes with a TypeError.
Fix the function so the script prints doubled plus one: 15.
The break is on line 2 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _