title: Using for loops to create a christmas tree
body: <p>I am trying to create a program where you enter a number and the program creates a "christmastree" arrangement of +'s. For example if I enter the number 5 the program should print:</p>
  
  <pre><code>    +
     +++
    +++++
   +++++++
  +++++++++
  </code></pre>
  
  <p>What I have so far is:</p>
  
  <pre><code>def holidaybush(n):
      z=n-1
      x=1
      for i in range(0,n):
          for i in range(0,z):
              print('',end='')
          for i in range(0,x):
              print('+',end='')
          for i in range(0,z):
              print('',end='')
          x=x*2
          x=x-1
          z=z-1
          print()
  holidaybush(5)
  </code></pre>
  
  <p>It does not work quite the way I expect, even though I go through the logic and it seems to work in my head. Any help? I just learned for loops today so I may not know everything about them.</p>