title: How do I reverse this pattern using nested loop?
body: <p>I am new to programming and nested for loops are driving me crazy. After a lot of time I was able to draw this pattern:</p>
  
  <pre><code>1
  12
  123
  1234
  12345
  123456
  </code></pre>
  
  <pre><code>for i in range(6):
      for j in range(i+1):
          print(j+1,end="")
      print()
  </code></pre>
  
  <p>As I understood, when i is 0 in the first iteration, range for inner loop would be 1 and (j+1) would print 1. And I got the pattern. </p>
  
  <p>I can't do the flip of this pattern like:</p>
  
  <pre><code>      1
       21
      321
     4321
    54321
   654321
  
  # Code I tried was:
  for i in range(6,0,-1):
      for j in range(i): 
          print(' ',end="")
      print()
  
  # The above is just printing blank spaces. 
  </code></pre>
  
  <p>I want to use nested for loops for this problem. </p>