print dictionary key values python code example Example: print key of dictionary python for key, value in mydic.items() : print (key, value)