I'm stuck on 15.8 : anti_vowel
It gave me a "list.remove(x): x not in list" error when I submitted my code. As far as I understand this is because in the line
a.remove(t) it doesn't see
t as a variable, but as the item in the list it should be looking for.
So my question is: is there a way to indicate to python that the
a.remove(t) is a variable?
And if my code is otherwise flawed I would hope to figure it out myself as its the best way for me to learn
def anti_vowel(text): a =  for char in text: a.append(char) for item in a: if item in "aeiouAEIOU": t = a.index(item) a.remove(t) a = ''.join(a) return a