Welcome to the Treehouse Community
Looking to learn something new?
removing items from a list
l don,t know what is wrong with my code
def disemvowel(word): vowels = ['a','e','i','o','u'] letters = list(word) for letter in word: if letter.lower()in vowels: letters.remove(letter) return''.join(letters)
Hello, the problem is with the last line:
it's currently placed inside the 'if' block and will return after the first pass. You should place it outside the 'for loop'.