Anti_vowel


#1



Anti_vowel


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":
            a.append(i)
        str(a)
    return a


#2

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


#3

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