update() can be used to add the contents of one directory to another. : Update : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Update »

 

update() can be used to add the contents of one directory to another.


dict2= {'host':'earth', 'port':80}
dict3= {'host':'venus', 'server':'http'}
dict2.update(dict3)
print dict2
dict3.clear()
print dict3



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Dictionary
» Update