find

PythonでStriped Words

コード2 http://www.checkio.org/mission/striped-words/publications/RRRQ/python-3/first/ からの引用。 すげー綺麗なコードで感動した。 VOWELS = "AEIOUY" CONSONANTS = "BCDFGHJKLMNPQRSTVWXZ" PUNCTUATION = ",.!?" def checkio(text): text = text.u…