Last active
August 29, 2015 14:12
-
-
Save boredstiff/d60438b955cabc904386 to your computer and use it in GitHub Desktop.
disemvowel.py
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
"""Pass in a string to remove the vowels and spaces""" | |
def disemvowel(t): | |
v = 'aeiou ' | |
print "".join([l for l in t.lower() if l not in v]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment