title: iterate over a single dimension in python dictionary
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11377908/iterating-one-key-in-a-python-multidimensional-associative-array">iterating one key in a python multidimensional associative array</a>  </p>
  </blockquote>
  
  
  
  <p>i created a dictionary on 2 dimensions
      myaddresses['john','smith'] = "address 1"
      myaddresses['john','doe'] = "address 2"</p>
  
  <p>How can i iterate over one dimension in the fashion</p>
  
  <pre><code>for key in myaddresses.keys('john'):
  </code></pre>