Skip to content

Instantly share code, notes, and snippets.

@beauvais
Created January 20, 2013 20:06
Show Gist options
  • Select an option

  • Save beauvais/4581317 to your computer and use it in GitHub Desktop.

Select an option

Save beauvais/4581317 to your computer and use it in GitHub Desktop.
anti_vowel for code academy
def anti_vowel(text):
vowels = ["A", "a", "E", "e", "I", "i", "O", "o", "U", "u"]
anti = []
for i in text:
if i in vowels:
pass
else:
anti.append(i)
return "".join(anti)
print anti_vowel("and i Like apricots")
@alifouad991
Copy link
Copy Markdown

Very nice guys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment