python print dictionaries code example
Example 1: print key of dictionary python
for key, value in mydic.items() :
print (key, value)
Example 2: how to create a dictionary in python
thisdict = {
"key1" : "value1"
"key2" : "value2"
"key3" : "value3"
"key4" : "value4"
}
Example 3: print key of dictionary python
for key, value in mydic.iteritems() :
print key, value