Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Last active August 29, 2015 14:15
Show Gist options
  • Save d30jeff/0c46d4964c73bbf23bff to your computer and use it in GitHub Desktop.
Save d30jeff/0c46d4964c73bbf23bff to your computer and use it in GitHub Desktop.
(Anti Vowel) [Codecademy] Bullshit error. This is impossible
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