Please let me know why this code isn't working

They way I see it, any character that doesn't match the characters in the quotes should be appended to a[], returning the argument without its vowels.

ef anti_vowel(text):
    text = list(text)
    a = []
    for i in text:
        if i != "a, e ,i , o, u, A, E, I, O, U":
    return a


A single character won't ever be equal to that whole string


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