title: Python Print key of dictionarys (OrderedDict) within list withloop
body: <p>I'm trying to figure out how to print a list, <code>storeItems</code>, that contains 3 <code>OrderedDict()</code>, and be able to print the <code>key</code> and <code>value</code> for each <code>OrderedDict</code>. I don't know how to solve this, and this is what I tried which gives me a <code>TypeError: string indices must be integers</code>.</p>
  
  <pre><code>storeItems = [{}, {}, {}]
  storeItems[0] = OrderedDict()
  storeItems[1] = OrderedDict()
  storeItems[2] = OrderedDict()
  
  storeItems[0]['Name'] = 'Auto-Enter'
  storeItems[0]['Price'] = 30
  storeItems[0]['Max'] = 100
  
  storeItems[1]['Name'] = 'Multiplier'
  storeItems[1]['Price'] = 100
  storeItems[1]['Max'] = 5
  
  storeItems[2]['Name'] = 'Factory'
  storeItems[2]['Price'] = 100
  storeItems[2]['Max'] = 3
  
  #the original layout of the storeItems
  
  #storeItems = [{
  #        "Name": "Auto-Enter",
  #        "Price": 30,
  #        "Max": 100
  #    }, {
  #        "Name": "Multiplier",
  #        "Price": 100,
  #        "Max": 5
  #    }, {
  #        "Name": "Factory",
  #        "Price": 200,
  #        "Max": 3
  #    }]
  i = 0
  for value in storeItems:
      for key in value:
          for i in range(0, 2):
              print(storeItems[i][key], storeItems[i][key][value])
  </code></pre>
  
  <h1>Things to note</h1>
  
  <p>I discovered doing <code>for value in storeItems: print(value)</code> will print <code>OrderedDict([('Name': 'Auto-Enter', ...)])</code> for each line. <code>print(storeItems[0]['Name'])</code> outputs <code>Auto-Enter</code>. I seem to struggle to make this into the loop.</p>
  
  <p>I prefer for this to keep as close as you can to the original format of <code>storeItems</code></p>