Anti_vowel What's wrong with my code?


#1



https://www.codecademy.com/courses/python-intermediate-en-rCQKw/1/2?curriculum_id=4f89dab3d788890003000096#

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.


#2

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
else:
no_vowels = no_vowels + text[i]
return no_vowels


#3