Anti_vowel


#1



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


File "python", line 10
elif char == "u" or char == "i":
^
SyntaxError: invalid syntax

just help me this exercise so hard

def anti_vowel(text):
    # transform text to lower_text
    lower_text = text.lower()
    lower_text = list(lower_text)
    for char in lower_text:
        if char == "a" or char == "e":
            lower_text.remove(char)
        return lower_text
        print lower_text
        elif char == "u" or char == "i":
            lower_text.remove(char)
        return lower_text
        print lower_text
        elif char == "o":
            lower_text.remove(char)
        return lower_text
        else:
            return text
anti_vowel("qwertyUUUU")


#2

Consider using the in operator, not operator, and a string of vowels.


#3

thanks man for replying


#5