Skip to content

Instantly share code, notes, and snippets.

@kkt-ee
Created January 4, 2020 16:57
Show Gist options
  • Save kkt-ee/0ea4742473efe5bf9d0a999f5a49c83b to your computer and use it in GitHub Desktop.
Save kkt-ee/0ea4742473efe5bf9d0a999f5a49c83b to your computer and use it in GitHub Desktop.
remove vowels
#remove vowels
def disemvowel(s):
return s.translate(None, "aeiouAEIOU")
def disemvowel(string):
return "".join(c for c in string if c.lower() not in "aeiou")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment