lists and dicts — the bones of every api6 / 9
the one-liner python writes when it's showing off
Claude generated this and it crashes with a SyntaxError. The pieces of the
comprehension are in the wrong order — the for clause came first instead
of the expression. Reorder line 2 so the script prints [2, 4, 6].
The break is on line 2 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _