I have a dictionary as follow:
d1 = {1:"Peter", 2:"Teddy"}
I want to make it to:
d1 = {1:"Peter", 2:"Teddy", 3:{"Oliver" : "Big"}}
I have tried but it doesn't work:
d1[3]["Oliver"]="Big"
I have a dictionary as follow:
d1 = {1:"Peter", 2:"Teddy"}
I want to make it to:
d1 = {1:"Peter", 2:"Teddy", 3:{"Oliver" : "Big"}}
I have tried but it doesn't work:
d1[3]["Oliver"]="Big"