Using python how to find elements in a list of lists based on a key that is an element of the inner list?
<p>Suppose I have a list of lists or a list of tuples, whichever can solve my problem more efficiently. Eg:</p>

<pre><code>student_tuples = [
    ('john', 'A', 15),
    ('jane', 'B', 12),
    ('dave', 'B', 10),
]
</code></pre>

<p>The task is to find an element in the main list based on a key that is any element of the inner list or tuple. Eg:</p>

<p>Using the list above:</p>

<pre><code>find(student_tuples, 'A')
</code></pre>

<p>or </p>

<pre><code>find(student_tuples, 15)
</code></pre>

<p>would both return</p>

<pre><code>('john', 'A', 15)
</code></pre>

<p>I'm looking for an efficient method.</p>
