Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created July 19, 2017 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/fe85dcc7f8e4f0d543b2d4302c747391 to your computer and use it in GitHub Desktop.
Save codecademydev/fe85dcc7f8e4f0d543b2d4302c747391 to your computer and use it in GitHub Desktop.
Codecademy export
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