Created
January 4, 2020 16:57
-
-
Save kkt-ee/0ea4742473efe5bf9d0a999f5a49c83b to your computer and use it in GitHub Desktop.
remove vowels
This file contains 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
#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