Compare elements of list within a list
<p>I have a list like this:</p>

<pre><code>[[846033, 365, 202], [849432, 276, 140], [821121, 209, 111], [820180, 244, 133], [849401, 971, 572], [848613, 790, 596], [846978, 914, 272]]
</code></pre>

<p>The first element of the little lists is the "idnumber" and the other 2 elements are data I want to compare. </p>

<p>The thing I want to do is this: I want to delete the elements of the big list for which at least one of the two data numbers is under 250. The answer should look like this:</p>

<pre><code>[[849401, 971, 572], [848613, 790, 596], [846978, 914, 272]].
</code></pre>

<p>I tried to make a for loop in a for loop but I failed:</p>

<pre><code>def zonderRuis(sigIdSpot=[[846033, 365, 202], [849432, 276, 140], [821121, 209, 111], [820180, 244, 133], [849401, 971, 572], [848613, 790, 596], [846978, 914, 272]]):
    ruisvrij=[]
    for i in range(len(sigIdSpot)):
        for r in i:
            if r[2]&gt;=250 and r[3]&gt;=250:
                ruisvrij.append(r)
    return ruisvrij
</code></pre>
