Anti_vowel, works but dosnt


I keep getting this error message, but when I put a user input in it seems to work perfectly fine but will still give me this error message. Im completely stumped :confused:

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

vowel = "aeiouAEIOU"
def anti_vowel(text):
    new_word = []
    for v in text:
        if v in vowel:
    word = ''.join(new_word)
    print word


you print the reversed string, you should return it


xD im not even sure how i missed that one, thank you so much


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.