Created
November 3, 2018 06:41
-
-
Save Ikhiloya/b7be571e8c17369e24e853101bde2a1c to your computer and use it in GitHub Desktop.
anti_vowel
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
def anti_vowel(text): | |
result = "" | |
vowels = "ieaouIEAOU" | |
for char in text: | |
if char not in vowels: | |
result += char | |
return result | |
print anti_vowel("hello book") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment