[ login to save ]
[ follow @TFisPython on x ]
lists and dicts — the bones of every api
2 / 9
nested dicts and lists — digging through the json ai just dumped
Read the
data
shape in the editor. Which expression evaluates to the string
"marcus"
?
1
`data["members"]["name"][1]`
2
`data["members"][1]["name"]`
3
`data["team"]["members"][1]`
4
`data[1]["members"]["name"]`
Check
⌘↵ runs the editor.
continue →
main.py
Booting Python…
run
⌘↵
Output
[promptdojo:~]$
_
Show prompt
park a thought