lists and dicts — the bones of every api9 / 9
nested dicts and lists — digging through the json ai just dumped
Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Final drill. The report dict below holds a list of orders, each with a
list of line items. Compute the total dollar value across all items
in all orders, and print it.
Expected output:
47
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _