functions — and the most-hallucinated bug ai ships6 / 9
functions and the missing return
Claude wrote this and the output is total: None instead of total: 15.
This is the most common bug in AI-generated functions. Fix it so the code prints total: 15.
The break is on line 2 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _