Welcome to the Treehouse Community
Looking to learn something new?
Doyle LardellCourses Plus Student 888 Points
cant get it
def disemvowel(word): vowel = ['a', 'e', 'i', 'o', 'u', 'A', 'E', "I", 'O', "U"] try: word.remove(vowel) except ValueError: pass return word
Steven Parker216,136 Points
The "word" argument is a string, and strings do not have a "remove" method. Perhaps you were thinking of "replace"?
Or you could also convert the string into a list and then you could use "remove", but you'd need to convert it back later.
Either way, you'll probably need a loop since both methods take only scalar (not list) arguments.