Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
myfamily = { "child1" : { "name" : "Emil", "year" : 2004 }, "child2" : { "name" : "Tobias", "year" : 2007 }, "child3" : { "name" : "Linus", "year" : 2011 } } for x, obj in myfamily.items(): print(x) for y in obj: print(y + ':', obj[y])
child1 name: Emil year: 2004 child2 name: Tobias year: 2007 child3 name: Linus year: 2011