title: How to guarantee order of processing of dict?
body: <pre><code>dict = {1:'Page 1 contents', 2:'Page 2 contents', 3:'Page 3 contents'}
  
  for pagenum, pagecontents in dict.items():
  </code></pre>
  
  <p>Does this code guarantee that pages will be processed in order 1, 2 and 3? If not, then what is the way to guarantee this?</p>