 <p>You have to iterate through the <code>.items()</code>:</p> <pre><code>def iteratedic(): datadic={ "one" : 1, "two" : 2, "three" : 3, "four" : 4 } return datadic def getdic(): dictionary = iteratedic() for m, n in dictionary.items(): print (m, n) getdic() </code></pre> <p>If you print <code>dictionary</code> you'll see that you get <code>{'four': 4, 'three': 3, 'two': 2, 'one': 1}</code> . If you print <code>dictionary.items()</code> you get the list of the items. <code>[('four', 4), ('three', 3), ('two', 2), ('one', 1)]</code>.</p>