Whats wrong?! number 8/15


#1
def anti_vowel(text):
vowel = list("aeiouAEIOU")
text = list(text)
text.remove(vowel)
return ''.join(text)

it keeps saying:
Traceback (most recent call last):
File "python", line 7, in
File "python", line 4, in anti_vowel
ValueError: list.remove(x): x not in list

But I just created it into a list!


#2

text is your list are trying to remove vowel which is a list and the interpreter complains that

x in this case is vowel