title: Print Triangle Pyramid pattern using for loop python
body: <p>I am using the following for loop code to print star pattern and the code is working perfectly fine. Here is my code</p>
  <pre><code>for i in range(1,6):
      for j in range(i):
          print(&quot;*&quot;, end=&quot; &quot;)
      print()
  </code></pre>
  <p>Output of this code is displaying as</p>
  <pre><code>* 
  * * 
  * * * 
  * * * * 
  * * * * * 
  </code></pre>
  <p>Now my question is how to print output like</p>
  <pre><code>         * 
          * * 
         * * * 
        * * * * 
       * * * * * 
  </code></pre>