python get key and value from dic code example Example: print key of dictionary python for key, value in mydic.items() : print (key, value)