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