Here's the error message when I try to run the function: "
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "" when it should return "Hy lk Wrds!"."
It should be returning "Hy Ik Wrds" but instead is returning "", but I can't for the life of me figure out the correct place for the return function.
def anti_vowel(text): vowels = "aeiouAEIOU" newText = "" for i in text: length = len(i)-1 while length != 0: if i[length] not in vowels: newText = newText.append(i) length = length-1 return newText