Your function fails on anti_vowel("Hey look Words!"). It returns "Hy look Words!" when it should return "Hy lk Wrds!".
I am trying to figure out why my function refuses to cooperate after replacing the first vowel.
def anti_vowel(text): vowel = "aeiouAEIOU" for word in text: while word in vowel: return text.replace(word,"")