How to write this program into a for loop?
<p>I'm trying to learn how to change this program into a for loop for the sake of knowing both ways</p>

<pre><code>def Diff(a_list):
    num = enumerate(max(x) - min(x) for x in a_list)
    return max(x[::-1] for x in num)
</code></pre>

<p>I want it to be something like</p>

<pre><code>def Diff(x):
    for a in x
</code></pre>

<p>if it helps the program is intended to return the row that has the smallest sum of the elements inside it so like <code>[[1,2,3,4],[-500],[10,20]]</code> would be <code>1</code>.</p>
