Anti_vowel


#1



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


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


#2

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


#4

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


#5

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