title: Removing increment in outer loop doesn't change the output, however inner one changes
body: <p>My question is not around the output but more on how we are reaching at the output</p>
  
  <p>Original - </p>
  
  <pre><code>n=5
  i=0
  j=1
  line=''
  
  for i in range(i,n+1):
      for j in range(j,i+1):
          line = line + str(j) + " "
          j += 1
      i +=1
      print( line)
  </code></pre>
  
  <p>I get my output as expected -</p>
  
  <pre><code>1 
  1 2 
  1 2 3 
  1 2 3 4 
  1 2 3 4 5 
  </code></pre>
  
  <p>Now if I remove the <code>i +=1</code>, I still get the same output. I'm not sure why?
  To test it further, I tried removing the <code>j +=1</code>, to see whet</p>
  
  <pre><code>n=5
  i=0
  j=1
  line=''
  
  for i in range(i,n+1):
      for j in range(j,i+1):
          line = line + str(j) + " "
          #j += 1       ##Commenting the inner loop
      #i +=1            ##Commenting the outer loop
      print( line)
  </code></pre>
  
  <p>Output - </p>
  
  <pre><code>1 
  1 1 2 
  1 1 2 2 3 
  1 1 2 2 3 3 4 
  1 1 2 2 3 3 4 4 5
  </code></pre>
  
  <p>Now I'm confused why removing the outer loop does not change anything but inner loops changes the output? If I removed outer loop, how come it's incrementing?</p>