Python doesn't have variables
10/5/22
My journey here starts with a task:
Turning this
{
"firstdata": {
"0": {"name": "ansel"},
"1": {"name": "adams"}
}
}
…into this
{
"firstdata": [
{"name": "ansel"},
{"name": "adams"}
]
}
Here’s the solution with some recursion:
|
|
Which led me to learning about this:
|
|