title: How to create patterns in Python using nested loops?
body: <p>I am trying to create this pattern in Python:</p>
  
  <pre><code>##
  # #
  #  #
  #   #
  #    #
  #     #
  </code></pre>
  
  <p>I have to use a nested loop, and this is my program so far:</p>
  
  <pre><code>steps=6
  for r in range(steps):
      for c in range(r):
          print(' ', end='')
      print('#')
  </code></pre>
  
  <p>The problem is the first column doesn't show up, so this is what is displayed when I run it:</p>
  
  <pre><code>#
   #
    #
     #
      #
       #
  </code></pre>
  
  <p>This is the modified program:</p>
  
  <pre><code>steps=6
  for r in range(steps):
      print('#')
      for c in range(r):
          print(' ', end='')
      print('#')
  </code></pre>
  
  <p>but the result is:</p>
  
  <pre><code>#
    #
  #
     #
  #
      #
  #
       #
  #
        #
  #
         #
  </code></pre>
  
  <p>How do I get them on the same row?</p>