Anti_vowel


#1




Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "bcdHy lk Wrds!" when it should return "Hy lk Wrds!".


I don't know why I'm getting this error or even where the "bcd" is originating from. Is this an error with my code? If so I can't figure it out.


vowels = ['a','e','i','o','u','A','E','I','O','U']

word = []
def anti_vowel(x):
        for char in x:
            if char not in vowels:
                word.append(char)
        return "".join(word)


#2

for validation the exercise calls the function with different strings as argument, but not the whole script, only the function.

so place vowels and word inside the function


#3

Thank you so much. It's always something so simple.


#4

you're welcome


#5