I would like to print a particular description from a nested dictionary:
friends={
"Rachel":{
"job":"fashion",
"last name":"Green",
"description":" brave for starting life over",
},
"Monica":{
"job":"culinary",
"last name":"Geller",
"description":"likes things clean",
},
"Phoebe":{
"job":"musician/masseuse",
"last name":"Buffay",
"description":"somewhat of a question mark",
},
"Chandler":{
"job":"statistical analysis and data reconfiguration",
"last name":"Bing",
"description":"the funny one",
},
"Joey":{
"job":"actor",
"last name":"Tribbiani",
"description":"italian american actor, born in queens, 7 sisters, only boy, NY Knicks rule",
},
"Ross":{
"job":"dinosaurs",
"last name":"Geller",
"description":"3 divorces",
},
}
so far i tried saving the results from the below loop into a variable but only managed to print the names
for i in friends:
print(friends[i]["description"])
the loop prints all of the descriptions but i only need to print one description
1