I'm doing the anti_vowel function, which basically takes out all of the vowels from the input,and I have some bugs there. Here is my code down below
def anti_vowel(text):
  vowel="aeiouAEIOU"
  for i in range(len(text)-1):
    for h in range(len(vowel)-1):
      if text[i]==vowel[h]:
        text=text.replace(text[i],"")
  return text      
print anti_vowel("HELLO")
If I input "HELLO",it will success to print"HLL".But if I changed my input to"Hey look Words!", it shows error IndexError: string index out of range.I am very grateful if someone can help me solving this problem.
 
    