clear method removes all items from the dictionary : Clear : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Clear »

 

clear method removes all items from the dictionary


d = {'host': 'earth', 'port': 80}

print d
returned_value = d.clear() 
print d 
print returned_value



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Clear