Finding the corresponding column number to the maximum value
<p>I want to find the column number that corresponds to the highest value in a row.</p>

<p>I need to write it as a function that takes the following dictionary as a argument:</p>

<pre><code>    {'1': {'3': 0, '2': 1, '5': 1, '4': 0, '6': 29},
    '3': {'1': 0, '2': 0, '5': 0, '4': 1, '6': 1},
    '2': {'1': 13, '3': 1, '5': 21, '4': 0, '6': 0},
    '5': {'1': 39, '3': 0, '2': 1, '4': 0, '6': 14},
    '4': {'1': 1, '3': 1, '2': 17, '5': 2, '6': 0},
    '6': {'1': 0, '3': 43, '2': 0, '5': 0, '4': 1}}
</code></pre>

<p>my first row is number 4. I find the highest number by:</p>

<pre><code>max(d['4'].values())
</code></pre>

<p>From the matrix representation of the dictionary i know that this number is in column number 2. And I want my function to return this number. How?</p>
