Help! anti_vowel


Hi everyone! I need some help on anti_vowel.

Anti_vowel practice link:

I received the following message:
- Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "Hey lk Wrds!" when it should return "Hy lk Wrds!".

Here's my original code:

vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U']

def anti_vowel(text):
    for c in text:
        if c in vowel:
            new_text = text.replace(c, "")
    return new_text

print anti_vowel("Hey look Words!")

How can I fix this? Can somebody help me with this??? Thanks!!!


I have figured this out!