len dictionary python

37

#!/usr/bin/python

dict = {'Name': 'Zara', 'Age': 7};
print "Length : %d" % len (dict)
len({'Name':'Steve', 'Age':30, 'Designation':'Programmer'})

Comments

Submit
0 Comments