Need help with anti_vowel


#1


Im stuck at anti_vowel

It says that Your code threw a "global name 'anti_vowel' is not defined" error.

I got this error message: Your code threw a "global name 'anti_vowel' is not defined" error.
when plugging in a string in my function it just spits out the same string without the vowels removed
Here is my code:
indent preformatted text by 4 spaces
Your code threw a "global name 'anti_vowel' is not defined" error.


def antivowel(text):
    antitext = ""
    for letter in text:
        if letter == "a":
            letter == ""
        elif letter == "e":
            letter == ""
        elif letter == "i":
            letter == ""
        elif letter == "o":
            letter == ""
        elif letter == "u":
            letter == ""
        elif letter == "A":
            letter == ""
        elif letter == "E":
            letter == ""
        elif letter == "I":
            letter == ""
        elif letter == "O":
            letter == ""
        elif letter == "U":
            letter == ""
        antitext += letter
    a = "".join(antitext)
    print a
antivowel("Hi how are you")


#2

Hi look well the error

global name 'anti_vowel' is not defined

And you declare antivowel.