promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_

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

Checkpoint

One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.

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.