Finding minimum value in an array of dicts
<p>I have an array like the following:</p>

<pre><code>people = [{'node': 'john', 'dist': 3}, 
          {'node': 'mary', 'dist': 5}, 
          {'node': 'alex', 'dist': 4}]
</code></pre>

<p>I want to compute the minimum of all the 'dist' keys. For instance, in the above example, the answer would be 3.</p>

<p>I wrote the following code:</p>

<pre><code>min = 99999
for e in people:
    if e[dist] &lt; min:
        min = e[dist]
print "minimum is " + str(min)
</code></pre>

<p>I am wondering if there is a better way to accomplish this task.</p>
