Help! anti_vowel


#1

Hi everyone! I need some help on anti_vowel.

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

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!!!


#2

I have figured this out!


#3