Nested for loop in python
<p>I'm trying to learn the python scripting  . Being some body who started coding in c/c++ or java i'm finding it extremely hard to find ways to write loops in python , especially <strong>for</strong> loops with conditions</p>

<p>I've a list A of string,
i need to do a specific op on these strings a pair at a time ,say xor of the strings
Also xor(a,b)=xor(b,a), hence i need to remove the redundant pair while looping</p>

<p>In traditional lang i would do something like</p>

<pre><code>for(i=0;i&lt;len;i++){
    for(j=i+1;j&lt;len;j++){
        res[count]=xor(a[i],a[j])
        count++;
    }
}
</code></pre>

<p>So how do I implement the same with Python, I could think of iterators but is there a more efficient way , something very obvious eluding my eyes??? </p>
