python my value of j change when for s in range(i,j-1): j=3 but before range it was j=2 ...please help me
<pre><code>for l in range(1,len(S)-1):
    for i in range(1,len(S)-l):
        j=i+l
        for X in N:
            max_score = 0
            args = None
            if j==2:
                print j
            for s in range(i,j-1):#s is for split point
                if j==2:
                    print j
                for W in probBiNonterDic.keys():#y&lt;==&gt;  X-&gt;YZ
                    if j==2:
                        print j
</code></pre>

<p>as you see that in first for block of X if j==2: print 2 but when in second block of s and W, if j==2 does not print 2...why is it, changing j value</p>
