Practice makes perfect unit has been tough for me and nearly had to reference the forum for nearly all of the lesson before 8. I tried this one myself and it feels like I'm close but still feels like I don't get it.
def anti_vowel(text): new = "" for c in text: if c == "a" or c == "e" or c == "i" or c == "o" or c == "u": remove = text.replace(c, "") new = new + remove return new print anti_vowel("Hey look Words!")
This is the code I came up with but when I test it, it spits the error
Oops, try again. Your function fails on anti_vowel("Hey look Words!"). It returns "Hy look Words!Hey lk Wrds!Hey lk Wrds!Hey lk Wrds!" when it should return "Hy lk Wrds!".
Anyone that can point me in the correct direction would be greatly appreciated, I really don't want to copy and paste someone's code again because it feels like I'm not learning anything