Practice Makes Perfect: anti_vowel
The error that was displayed said, "Your code looks a bit off--it threw a "'str' object has no attribute 'remove'" error. Check the Hint if you need help!"
I am seriously lost as to what I am suppose to do for this lesson. Am I on the right track or am I not close? Why does the .remove command not work? Is it because I need to change text into a different form, such as a list? Thanks in advance!
def anti_vowel(text): for i in text: if i == 'a'or'e'or'i'or'o'or'u'or'A'or'E'or'I'or'O'or'U': text.remove(i)