Claude wrote this and the output is total: None instead of total: 15.
This is a 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.
Claude wrote this and the output is total: None instead of total: 15.
This is a common bug in AI-generated functions. Fix it so the code prints total: 15.