lists and dicts — the bones of every api7 / 9
the one-liner python writes when it's showing off
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.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _