promptdojo_
Checkpoint

One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.

AI handed you the skeleton of a Cart class. The __init__ and add methods are wired correctly. Your job: finish the total method so it returns the sum of all prices currently in self.items.

Expected output:

17

this step needs the editor

on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.

open this same url on a laptop to keep going today.