Oops, try again. Your function crashed on Hey look Words! as input because your function throws a "string index out of range" error.
I don't know how to fix this bug. Can anyone point out my mistakes?
def anti_vowel(text): vowel = "aeiouAEIOU" result = "" x = 0 while x <= len(text): for c in text: if c != vowel[x]: result += c x += 1 return result