The way i tried to solve this was to create a variable ‘vowel’ and use a For loop to check if each alphabet is one of the letters in ‘vowel’. Here’s the code
** vowel = “aeiou”**
** for letter in text:**
** if letter.lower() in vowel:**
** new_text = text.replace(letter,"")**
** return new_text**
The error message i got was this: Your function fails on anti_vowel(“Hey look Words!”). It returns “Hey lk Wrds!” when it should return “Hy lk Wrds!”.
The loop failed on removing the ‘e’. Can anyone help me with this?