Created
June 9, 2017 22:57
-
-
Save vanor89/ba903c8c067f0607f78173d5d28534fe to your computer and use it in GitHub Desktop.
Py-Disemvowel
This file contains hidden or 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 disemvowel(word): | |
vowels = ['a','A','e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'] | |
for vowel in vowels: | |
word = word.replace(vowel, "") | |
return word |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment