difference-python-2-and-python-3">
<h2>Difference Python 2 and Python 3<a class="headerlink" href="#difference-python-2-and-python-3" title="Permalink to this headline">¶</a></h2>
<p>In python 2.x the above examples using <code class="docutils literal notranslate"><span class="pre">items</span></code> would return a list with tuples containing the copied key-value pairs of the dictionary. In order to not copy and with that load the whole dictionary’s keys and values inside a list to the memory you should