Anti_vowel What's wrong with my code?


Oops, Try Again,
Does your anti_vowel function take exactly one argument (a string)? Your code threw a "unsupported operand type(s) for -=: 'str' and 'str'" error.
I think my expressions are off but I don't know how to fix it. PLEASE HELP

Replace this line with your code.


Found my mistake and rewrote some lines to make it work nevermind
def anti_vowel(text):
no_vowels = ''
for i in range(len(text)):
if text[i] in "aeiouAEIOU":
no_vowels = no_vowels
no_vowels = no_vowels + text[i]
return no_vowels