Antivowels: My code is correct but I dont pass


#1

Hello,

I am working on the eliminate vowels exercise. My code returns the correct answer, but the compiler believes that it returns “None,” I quote: Your function fails on anti_vowel(“Hey look Words!”). It returns “None” when it should return “Hy lk Wrds!”.

This is what it returns:

hll - for hello
bcd - for abcd
Hy lk Wrds! - for Hey look Words!

So it looks pretty good to me.

This is the link:

What could be going on?

Thanks,

Eric


#2

Maybe they see “Y” as a vowel too?
“The letter Y can be a vowel (as in the words “cry”, “sky”, “fly” , “my” or “why”)”


#3

None is the implicit returned value by python, you don’t return the anti vowel string, you only print it


#4

Brilliant answer! I wont make that mistake again. Thanks for the prompt feedback.


#5

Hey! thanks for the response, as part of the instructions they don’t count Y as a vowel.