How to Update Dictionaries : Assignment « Dictionary « Python Tutorial






dict1 = {'A': 'earth', 'B': 80}
dict1['A'] = 'venus' 
dict1['B'] = 6969    
dict1['C'] = 'sunos5' 

print dict1








8.2.Assignment
8.2.1.How to Update Dictionaries