code works beautifully yet I get:

Oops, try again.
Your function fails on anti_vowel("Hey look Words!"). It returns "None" when it should return "Hy lk Wrds!".

Any idea's to make the lesson happy so I can move forward?

def anti_vowel(text):
    for c in text:
        if c not in "aeiouAEIOU":
            print c,
anti_vowel("Simple yet great!")


you need to return the reversed string, not print it.


Thank you; this is what I get for doing things late.


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