Source Code:
(back to article)
my_dict = { "person1": { "name": "John", "age": 30 }, "person2": { "name": "Jane", "age": 25 } } print(my_dict["person1"]["name"]) # Output: John print(my_dict["person2"]["age"]) # Output: 25
Result:
Report an issue