title: Removing characters from string Python
body: <p>I'm trying to write a function that gets rid of the vowels in a given string, but it seems to not behave the way it should do...</p>
  
  <pre><code>def anti_vowel(text):
      for c in text:
          if c in "aeiouAEIOU":
              no_vowel = text.replace(c, '')
      return no_vowel
  print(anti_vowel('Hello World')
  </code></pre>
  
  <p>so instead of printing</p>
  
  <pre><code>Hll Wrld
  </code></pre>
  
  <p>It prints</p>
  
  <pre><code>Hell Wrld  
  </code></pre>
  
  <p>Thanks (in advance) for helping    </p>