Hi All,
I'm trying to append a new sub-key to specific dictionary but it
replacing the content of parent key instead of add a sub-key!
How I can fix this issue?
--snippet--
addressbook = {
'work': {
'Andre': {
'phone': '22761654',
'e-mail': '5456646',
'address': 'Syria, Aleppo',
'website': 'www.sdff.com'
}
},
'Friends': {
'Ahmad': {
'phone': '34646464',
'picture': '/home/fiends/wael.png',
'posts': {
'blog': 'http://www.dsfd.com/',
'newspaper': 'http://news.com/'
}
},
'Issa': {
'e-mail': 'a...@dsfdsc.com'
}
}
}
addressbook['Friends'] = {
'kassem': {
'address':'Aleppo Street',
'Country':'Palestine',
'articles':{
'blog':'http://blogger.com',
'news':'http://news.com/'
}
}
}
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor