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 trialPodrig Leoghain
5,094 PointsI'm done, need help, tried so hard, got so far!
So... what's the deal? I've tried working through it myself. Then went searching on the interwebs. Finally, am trying the community. If this is something simple I will slap myself. If it is yet another bug in the challenges I'm stopping my subscription,
def disemvowel(word):
vowels = ['a', 'e', 'i', 'o', 'u']
word_disemvowel = ""
for char in word:
if char not in vowels:
word_disemvowel += char
word = word_disemvowel
return word
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Well, don't slap yourself, but you are very very close. Your logic is spot on! But you missed a corner case. No, it's not a bug in the challenge. Take a good look at the very last line of the instructions:
Oh, be sure to look for both uppercase and lowercase vowels!
Your vowels
list only contains the lower case of vowel and not the upper case. So if I were to send in "App Store", your code would send back "App Str" because it isn't checking for the uppercase vowels
Hope this helps!
Podrig Leoghain
5,094 PointsPodrig Leoghain
5,094 PointsWell then, I feel like a wee dafty! I did try putting char.lower and stuff like that but it didn't seem to want to work. The funniest thing about learning coding is when you try for like 2 hours and then realise or get told something glaringly obvious! Thank you, Jennifer!