title: How to reset a variable to initial value after while loop
body: <p>So I am playing around making a hashtag tree.</p>
  
  <pre><code> #Ask user to enter number of tree rows
      Height=int(input("Enter height of tree: "))
      hashes = 1
      while Height &gt;0:
          print(' ' * (Height-1) + "#" * (hashes))
          Height -=1
          hashes +=2
      #print a stump(hash)
      print(" " * (Height) + "#")
  </code></pre>
  
  <p>It seems that for the last print the value assigned in Height variable is 0. It has kept the value decremented in the while loop. How can I reset it after the while loop back to its initial value?</p>