I am being so dense with this problem. I can’t work out why my solution doesn’t work. I thought this was simple and I’d learned to understand the language taught so far! Seems to be a problem with my appending, can you not append characters in a string word? Should I be making a new list that separates each character and then delete or remove the vowels from the list of separate characters and then re-attach the individual letters? That seems a bit long-winded…
It is throwing up the error:
Your code looks a bit off–it threw a “‘str’ object has no attribute ‘append’” error. Check the Hint if you need help!
def anti_vowel(text): no_vowel = "" rubbish = "" for char in text: if char in "aeiouAEIOU": rubbish.append(char) else: no_vowel.append(char) return no_vowel