Compare Dictionary Sizes : Compare dictionary : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Compare dictionary »

 

Compare Dictionary Sizes


dict1 = {}
dict2 = {'host': 'earth', 'port': 80}
print len(dict1> len(dict2)



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Compare dictionary