lists and dicts — the bones of every api7 / 9
nested dicts and lists — digging through the json ai just dumped
AI tried to read roles[\"admin\"] from a list and crashed with
TypeError: list indices must be integers. The roles field is a
list of strings, not a dict. Fix line 10 so the script prints
admin (the first role).
The break is on line 9 — but read the whole snippet first.
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _