List of tuples of dictionaries and ints, how to search through each dict
<p>I'm working on a project in which I have a list that contains tuples of a dict and an int.  I'm trying to search through each dictionary for a give name but I'm having some trouble.</p>

<pre><code>dicts = [ (somedict, 0), (someOtherDict, 5)]
</code></pre>

<p>Before I just had a list of dicts so I could easily search through with </p>

<pre><code>def search(name):
    for d in reversed(dicts):
        if name in d: return d[name]
</code></pre>

<p>But now that I have a list of tuples I'm not quite sure how to search through the dictionaries.  Any help or advice would be greatly appreciated.  I'm so confused now.</p>
