title: Triangle of Stars using recursion Python
body: <p>So I have an assignment to write some simple functions recursively. One of them is to make a triangle of stars based on an inputted height. for example:</p>
  
  <p>stars(5) </p>
  
  <p>will print out:</p>
  
  <pre><code>*
  **
  ***
  ****
  *****
  </code></pre>
  
  <p>and this function works just fine in doing that.</p>
  
  <pre><code>def stars(height):
      x = 1
      while x &lt;= height:
          print ('*' * x)
          x += 1
  </code></pre>
  
  <p>How can I write this recursively? Any help is greatly appreciated.</p>