-
-
Save codecademydev/fe85dcc7f8e4f0d543b2d4302c747391 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): | |
x=text | |
for i in x: | |
if x[i]=='a' or x[i]=='A': | |
x.remove(x[i]) | |
elif x[i]=='e' or x[i]=='E': | |
x.remove(x[i]) | |
elif x[i]=='i' or x[i]=='I': | |
x.remove(x[i]) | |
elif x[i]=='o' or x[i]=='O': | |
x.remove(x[i]) | |
elif x[i]=='u' or x[i]=='U': | |
x.remove(x[i]) | |
return x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment