How to break out of nested loops in python?
<p>what is the difference between these sets of loops?</p>

<pre><code>for i in range(0,5):
    print i,'i'
    for x in range(0,4):
        print x,'x'
    break
</code></pre>

<p>AND</p>

<pre><code>for i in range(0,5):
    print i,'i'
    for x in range(0,4):
        print x,'x'
        break
</code></pre>

<p>what's the scope of break statement?</p>