promptdojo_

Comprehensions and the wrong-layer bug — step 7 of 8

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 a placeholder empty list is there.

Replace the empty list with a single comprehension so the script prints ['alex', 'jordan'].

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