lists and dicts — the bones of every api9 / 9
the one-liner python writes when it's showing off
Checkpoint
One last thing before we move on. Same surface as a write step — but the lesson doesn't complete until this passes.
Last one. Cursor wrote a snippet to take a list of user dicts and pull out
just the names of users whose age is at least 18. The comprehension is
missing — only the pass placeholder is there.
Replace the pass line with a single comprehension so the script prints
['alex', 'jordan'].
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _