<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
idk why my code is unable to remove the last vowel even though it works fine with the words before it.
error message:Oops, try again. Your function fails on anti_vowel(“Hey look Words!”). It returns “Hy lk Words!” when it should return “Hy lk Wrds!”.
here is my code: def anti_vowel(text): result =  for i in text: result.append(i) for a in result: if a in "aeiouAEIOU": result.remove(a) return ''.join(result)