The one-liner Python writes when it's showing off — step 9 of 9
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'].
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'].
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.