title: How to make a triangle of x's in python?
body: <p>How would I write a function that produces a triangle like this:</p>
  
  <pre><code>    x
     xx
    xxx
   xxxx
  xxxxx
  </code></pre>
  
  <p>Let's say the function is <code>def triangle(n)</code>, the bottom row would have <code>n</code> amount of x's</p>
  
  <p>All I know how to do is make a box:</p>
  
  <pre><code>n = 5
  for k in range(n):
      for j in range(n):
          print('x', end='')
      print()
  </code></pre>