def anti_vowel(text): for i in text: if i in "aeiouAEIOU": text = text.replace(text[text.index(i)], "") print text return text anti_vowel("Hey look Words!")
Above is my code and although it works fine it does not pass the compilers tests. Following is the error that the compiler throws:
Oops, try again. Your code looks a bit off--it threw a "substring not found" error. Check the Hint if you need help!
I would really appreciate your help. Stuck here since sometime now. Thanks in advance.