8.anti_vowel. Browsing through older discussions did not help


#1



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


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


Expect my code to give the right output and return "Hy lk Wrds!"


Replace this line with your code. 
def anti_vowel(text):
    T = ""
    for i in text:
        if i not in "aeiouAEIOU":
            T = T + i
    print T


#2

Got it ! Mybad
Had to use 'return' in the function. Every definition of a function needs to have a return ?

Hope it helps others too.


#3