title: Why does this python dictionary get created out of order using setdefault()?
body: <p>I'm just starting to play around with Python (VBA background).  Why does this dictionary get created out of order?   Shouldn't it be a:1, b:2...etc.?</p>
  
  <pre><code>class Card:
  def county(self):
      c = 0
      l = 0
      groupL = {}  # groupL for Loop
      for n in range(0,13):
          c += 1
          l = chr(n+97)
          groupL.setdefault(l,c)
      return groupL
  
  pick_card = Card()
  group = pick_card.county()
  print group
  </code></pre>
  
  <p>here's the output:</p>
  
  <pre><code>{'a': 1, 'c': 3, 'b': 2, 'e': 5, 'd': 4, 'g': 7, 'f': 6, 'i': 9, 'h': 8, 'k': 11, 'j': 10, 'm': 13, 'l': 12}
  </code></pre>
  
  <p>or, does it just get printed out of order?</p>