title: How to invert the printed 'tirangle' output in a nested loop function
body: <p>so for something like this:</p>
  
  <pre><code>    for j in range(n): 
           for i in range(j+1): 
           print(i, end = ' ')
  </code></pre>
  
  <p>It would print:</p>
  
  <pre><code>    0 
      0 1 
      0 1 2 
      0 1 2 3 
      0 1 2 3 4 
  </code></pre>
  
  <p>How can i invert it to look like this:</p>
  
  <pre><code>    0 1 2 3 4
      1 2 3 4
      2 3 4
      3 4
      4 
  </code></pre>