promptdojo_

The one-liner Python writes when it's showing off — step 7 of 9

Cursor wanted to keep only names longer than 3 characters. Instead of filtering them out, it used an if/else inside the expression, so short names got replaced with the string "-" instead of removed.

Output is currently ['alex', '-', 'jordan', '-']. Fix line 2 so the output is ['alex', 'jordan'] — short names removed entirely.

The break is on line 2 — but read the whole snippet first.

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