Loop in Python not giving output
<p>Can anyone see the error in this code? I think that it should print two1[i], but it prints nothing.</p>

<pre><code>two1=[1,2,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2]
count = 0
i = 0
while count &lt; 4:
    #if i == len(two1)-6: break
    #else:
        if abs(int(two1[i+2]) - int(two1[i+3]))&gt;10 and abs(int(two1[i+4]) -abs(int(two1[i+5]))&lt;10  
            print two1[i]
            count = count + 1
            i = i + 6
        if abs(int(two1[i+2]) - int(two1[i+3]))&lt;10 and abs(int(two1[i+4]) -  abs(int(two1[i+5])) &gt; 10:


            print two1[i]
            count = count + 1
            i = i + 6
        else:
            count = count + 1
            i = i + 6
</code></pre>
