I've almost completed this exercise but I get a slight error. When I submit the code this is the error message;
"Your function fails on antivowel("Hey look Words!"). It returns "Hy lok Words!" when it should return "Hy lk Wrds!"._"
As you can see, my functions dosen't seem to remove lowercase or uppercase letter 'o' and I don't know what to do.
Below is my code:
def anti_vowel(text): text_list = list(text) for c in "aeiouAEIOU": try: text_list.remove(c) except ValueError: pass # do nothing! result = ''.join(text_list) return result