classes — reading what ai just wrote you6 / 9
class, __init__, self — the three keywords ai uses every time
Claude wrote this and it crashes with a TypeError because it forgot
self in the method definition. Add self as the first parameter to
total so the script prints 15.
The break is on line 5 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _