Skip to content

Instantly share code, notes, and snippets.

@fanzhang312
Created December 12, 2014 20:38
Show Gist options
  • Save fanzhang312/8e604ad5bb800048cc4c to your computer and use it in GitHub Desktop.
Save fanzhang312/8e604ad5bb800048cc4c to your computer and use it in GitHub Desktop.
RemoveVowels
def remove(text):
for letter in text:
if letter.lower() in ['a','e','i','o','u']:
text = text.replace(letter, '')
return text
import re
def anti_vowels(text):
return re.sub("[aeiou]+", "", text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment