lists and dicts — the bones of every api8 / 9
nested dicts and lists — digging through the json ai just dumped
Below is a payload that mimics a real API response. Write a function
all_emails(payload) that returns a list of every user's email
(one per user, in order). Then print each email on its own line.
Expected output:
maya@promptdojo.dev
marcus@promptdojo.dev
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _