-
-
Save codecademydev/e6dc3d964e9185f37abbce3b406e1be1 to your computer and use it in GitHub Desktop.
Codecademy export
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
""" | |
def anti_vowel(text): | |
vowels = "aeiouAEIOU" | |
new_lst = [] | |
for i in text: | |
if i not in vowels: | |
new_lst.append(i) | |
new = ''.join(new_lst) | |
print new | |
anti_vowel('Hey look Words!') | |
""" | |
def anti_vowel(text): | |
vowels = "aeiouAEIOU" | |
new_lst = [] | |
for i in text: | |
if i not in vowels: | |
new_lst.append(i) | |
return ''.join(new_lst) | |
print anti_vowel('Hey look Words!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment