Anti_vowel, works but dosnt


#1



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:
            pass
        else:
            new_word.append(v)
    word = ''.join(new_word)
    print word


#2

you print the reversed string, you should return it


#4

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


#5

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