Last active
August 29, 2015 14:15
-
-
Save d30jeff/0c46d4964c73bbf23bff to your computer and use it in GitHub Desktop.
(Anti Vowel) [Codecademy] Bullshit error. This is impossible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def anti_vowel(text): | |
vowels = ['a','e','i','o','u','A','E','I','O','U'] | |
new_word = [] | |
for piece in text: | |
if piece in vowels: | |
new_word.append("") | |
else: | |
new_word.append(piece) | |
return "".join(new_word) | |
print anti_vowel("deojeff") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment