Welcome to the Treehouse Community
Looking to learn something new?
Eric Kumasaka869 Points
My code runs on my win10 laptop using python IDLE but it won't run in the Treehouse workspace.
I'm stuck on the disemvowel.py exercise. My code runs fine on my Surface Pro 6 Win10 pc but I keep getting an error message in the Treehouse workspace.
The error message is:
"X Bummer: Hmm, got back letters I wasn't expecting! Called disemvowel('vuAuPs') and expected 'vPs'. Got back None."
wordlist = list(word) vowelslist = ['a','A','e','E','i','I','o','O','u','U'] for vowel in vowelslist: wordlist = [l for l in wordlist if l != vowel] word = ''.join(wordlist) print(word)
You need a return statement instead of print. Why the checker sees none is because your function doesn't return anything.
Andrew Bickham1,461 Points
so ive been working on the same challenge, and I’ve bedn snooping around the community just to see how others have cleared the challenge, i came across this one and was wondering if someone could explain all the coding after the “for loop”