title: Getting an element from tuple of tuples in python
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8731231/tuple-value-by-key">Tuple value by key</a>  </p>
  </blockquote>
  
  
  
  <p>How do i find the country name by having its code,</p>
  
  <pre><code>COUNTRIES = (
     ('AF', _(u'Afghanistan')),
     ('AX', _(u'\xc5land Islands')),
     ('AL', _(u'Albania')),
     ('DZ', _(u'Algeria')),
     ('AS', _(u'American Samoa')),
     ('AD', _(u'Andorra')),
     ('AO', _(u'Angola')),
     ('AI', _(u'Anguilla'))
  )
  </code></pre>
  
  <p>I have code <code>AS</code>, find its name without using forloop on  <code>COUNTRIES</code> tuple?</p>