Python Most Efficient Way to Search a List
<p>Bear with me as I am very new to Python.  Basically I am looking for the most efficient way to search through a multi-dimensional list.  So say I have the following list:</p>

<pre><code>fruit = [
    [banana, 6],
    [apple, 5],
    [banana, 9],
    [apple, 10],
    [pear, 2],
   ]
</code></pre>

<p>And I wanted the outcome of my function to produce:  Apple: 15, Banana: 15, Pear 2.  What would be the most efficient way to do this?</p>
