Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created December 6, 2016 16:42
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/e6dc3d964e9185f37abbce3b406e1be1 to your computer and use it in GitHub Desktop.
Save codecademydev/e6dc3d964e9185f37abbce3b406e1be1 to your computer and use it in GitHub Desktop.
Codecademy export
"""
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