print key as well as its value code example
Example 1: print key of dictionary python
for key, value in mydic.items() :
print (key, value)
Example 2: howe to print all values and keysin d
for i in d:
print i, d[i]
for key, value in mydic.items() :
print (key, value)
for i in d:
print i, d[i]