This is my code, but it always returns:
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "None" when it should return "Hy lk Wrds!".
Can you help me? I'm stuck..

def anti_vowel(text):
    while i<len(text):
        if text[i] not in 'aiueoAIUEO':
            print text[i]
anti_vowel('Hey look Words!')


Consider how your function is supposed to present its result, it isn't by printing


It is by returning.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.