title: Recursive function to remove vowels
body: <p>I'm trying to write a recursive program that returns a string of letters from a word that are non vowels. My code right now print's out all of the non vowels of "University" but never ends . Any ideas?</p>
  
  <pre><code>def removeVowels9(aString):
      if len(aString) == 0:
          return newString
      else:
          newString = aString[1:len(aString) + 1]
          firstLetter = aString[0]
          #print(firstLetter)
          if firstLetter in "aeiouAEIOU":
  
              return removeVowels9(newString)
          else:
              newString = newString + firstLetter
              print(newString)
  
              return removeVowels9(newString)
  </code></pre>