Skip to content

Instantly share code, notes, and snippets.

@vanor89
Created June 9, 2017 22:57
Show Gist options
  • Save vanor89/ba903c8c067f0607f78173d5d28534fe to your computer and use it in GitHub Desktop.
Save vanor89/ba903c8c067f0607f78173d5d28534fe to your computer and use it in GitHub Desktop.
Py-Disemvowel
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