title: Iterate through the dictionary in alphabetical order
body: <p>I have a dict in my python code. I need to iterate through all its elements in the order of the sorted keys. in C++, I do it like this:</p>
  <pre><code>map&lt;string, int&gt; my_map;
  my_map[&quot;ccc&quot;] = 3;
  my_map[&quot;aaa&quot;] = 1;
  my_map[&quot;bbb&quot;] = 2;
  for (auto item : my_map)
  {
      cout &lt;&lt; item.second &lt;&lt; endl;
  }
  </code></pre>
  <p>The output is:</p>
  <pre><code>1
  2
  3
  </code></pre>
  <p>But if I try to do similar actions in python, the output order changes:</p>
  <pre><code>my_dict = dict()
  my_dict['ccc'] = 3
  my_dict['aaa'] = 1
  my_dict['bbb'] = 2
  for item in my_dict.items():
      print(item[1])
  </code></pre>
  <p>The output is:</p>
  <pre><code>3
  1
  2
  </code></pre>
  <p>How can I iterate over a dict in python in the same order as unordered_map in c++?</p>