title: How to assign a collection of 3 pieces of data
body: <p>I have some dozens of tuples each containing 2 strings and 1 integer. Ex:<code>(str, str, int)</code>.
  All these tuples are in a list (example below).
  Each tuple is unique and each tuple's strings and integer are also unique.</p>
  <p>Ex.:</p>
  <pre><code>[('a','aA', 53),
   ('b','bb', 21),
   ('c','cc', 234),
   ('d','de', 76),
  ..]
  </code></pre>
  <p>What I want is, to use this data structure like a dictionary and retrieve the entire tuple for any of <strong>one of the 3 values</strong> I pass.</p>
  <blockquote>
  <p>Ex.:</p>
  <p>For value <code>'a'</code> -&gt; get the whole tuple of:<code>('a', 'aA', 53)</code></p>
  <p>For value <code>'cc'</code> -&gt; get the whole tuple of:<code>('c', 'cc', 234)</code></p>
  <p>For value <code>'76'</code> - &gt; get the whole tuple of:<code>('d', 'de', 76)</code></p>
  </blockquote>
  <p>So far I have done:
  <em>Creating a simple function to iterate through the list of tuples, go through each tuple and its all 3 values to find a match and if there's a match return the tuple, if not return False.</em></p>
  <p>This sounds slow and seems like the very wrong way to do this task.</p>
  <ol>
  <li>What would be the right way to achieve this?</li>
  <li>Should I create 3 dictionaries and link them to each other?</li>
  </ol>