Skip to content

Instantly share code, notes, and snippets.

@ov7a
Created August 31, 2017 18:47
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 ov7a/ac6ac882047742dcb81cd736176e75b1 to your computer and use it in GitHub Desktop.
Save ov7a/ac6ac882047742dcb81cd736176e75b1 to your computer and use it in GitHub Desktop.
#coding=utf-8
import sys
vowels = u"уеаоэяиюы"
text = sys.stdin.read()
consonant = filter(lambda x: x.lower() not in vowels, text)
vows = filter(lambda x: x.lower() in vowels or x == " ", text)
print
print("-----------")
print("".join(consonant))
print
print("".join(vows))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment