Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialManuel Avila
2,241 Pointsdisemvowel
def disemvowel(word): vowel = 'aeiou' mod_word = "" word = word.lower()
for let in word:
if let not in vowel:
mod_word += let
return mod_word
code works in regular python IDL 3.6 but keep getting Bummer try again!!!
def disemvowel(word):
vowel = 'aeiou'
mod_word = ""
words = len(word)
for let in word:
if let not in vowel:
mod_word += let
return mod_word
1 Answer
Steven Parker
231,269 PointsIt can sometimes be easy to misinterpret that code "works" if you're not testing it as thoroughly as the challenge does.
One point to consider is that the function should remove both uppercase and lowercase vowels, but not change any of the remaining letters. So you might include a word like "VOWEL" in your testing, and the result with the vowels removed should be "VWL" (all still upper case).