Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "H" when it should return "Hy lk Wrds!".
this code works perfectly outside the function, but failed to work inside the function.
please explain this error
def anti_vowel(text): for d in text: if d not in "aeiouAEIOU": return d print anti_vowel("you are good")