title: Python: get key of index in dictionary
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2568673/inverse-dictionary-lookup-python">Inverse dictionary lookup - Python</a><br>
    <a href="https://stackoverflow.com/questions/3221475/reverse-mapping-of-dictionary-with-python">reverse mapping of dictionary with Python</a>  </p>
  </blockquote>
  
  
  
  <p>How do i get key of index in dictionary?</p>
  
  <p>For example like:</p>
  
  <pre><code>i = {'a': 0, 'b': 1, 'c': 2}
  </code></pre>
  
  <p>so if i want to get key of i[0], it will return 'a'</p>