bisakah kamu panjang kamus dalam python
obj = {0:"hello", 1:"there"}
for i in range(len(obj)):
print(obj[i])
print(len(obj))
White Lord
obj = {0:"hello", 1:"there"}
for i in range(len(obj)):
print(obj[i])
print(len(obj))
len({'Name':'Steve', 'Age':30, 'Designation':'Programmer'})
#!/usr/bin/python
dict = {'Name': 'Zara', 'Age': 7};
print "Length : %d" % len (dict)