I have been trying to solve this section but nothing is working. I have been stuck in this one for days now. So can someone please help me?
Oops, try again. Your function fails on anti_vowel(“Hey look Words!”). It returns “Hey lk Wrds!” when it should return “Hy lk Wrds!”.
def anti_vowel(text): for i in text: if i in "aeiouAEIOU": new=text.replace(i,"") return new print anti_vowel("Hey look Words!")