Hi, I wanted to use the list to store all of the vowels in this exercise but now the code does not work. What have I missed?
def anti_vowel(text): vowel=['a','e','i','o','u','A','E','I','O','U'] n=0 s='' while n < len(text): if text[n] == vowel: n=n+1 else: n=n+1 s=s+text[n] return s
I'm getting: Your function fails on anti_vowel("Hey look Words!"). It returns "e" when it should return "Hy lk Wrds!".