promptdojo_

Nested dicts and lists — digging through the JSON AI just dumped — step 9 of 9

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

full-screen editor opens — close anytime to keep reading.