Iterate over a specific column in a dictionary in Python
<p>I'm trying to iterate over the second column (first index) in a dictionary similar to:</p>

<pre><code>dict    =   {
"Me": [("Blue", 37, 1,  2, "up", "left")],
"You": [("Green",  03, 3, 4, "up", "right"),
    ("Red", 29, 5, 6, "down", "right"),
    ("Yellow", 35, 7,  8, "straight", "down")],
"Them": [("Black", 08, 9, 10, "up", "up"),
    }
</code></pre>

<p>and retrun the largest value.  What I have is:</p>

<pre><code>    for c in dict[1:2]:

    x = 0

    if c &gt; x:

        x = c

return x
</code></pre>

<p>I'm getting an unhashable type error.  I know it has something to do with how the code iterates over the dictionary but I'm stuck on how to fix it.  Language is Python.  What is wrong here?  Any help is greatly appreciated!</p>