Check if element exists in tuple of tuples
<p>I have a list of tuples that look like :</p>

<pre><code>CODES = (
    ('apple', 'reddelicious'),
    ('caramel', 'sweetsticky'),
    ('banana', 'yellowfruit'),
)
</code></pre>

<p>What's the best way to check if a value exists in that tuple? For example I want to be able to say:</p>

<pre><code>'apple' in CODES
</code></pre>

<p>and get True</p>
