title: Printing in a pyramid pattern puts each number on a separate line
body: <p>I'm not able to remove the spacing in a <code>for</code>-loop as numbers are not coming in the same for making the pattern.</p>
  
  <p>My code:</p>
  
  <pre><code>for i in range(1,5):
      for j in range(1,i):
         print(j)
  </code></pre>
  
  <p>Produces the following result:</p>
  
  <pre><code>1
  1
  2
  1
  2
  3
  </code></pre>
  
  <p>But my desired output is:</p>
  
  <pre><code>1
  12
  123
  1234
  </code></pre>