Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Striped Words by qria
import re
ALPHABETS = ['AEIOUYaeiouy', 'BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz']
def checkio(text):
words = re.findall(r"[\w]+", text)
return sum( len(w) > 1 and ( all(w[i] in ALPHABETS[i%2] for i in range(len(w)))
or all(w[i] in ALPHABETS[(i+1)%2] for i in range(len(w)))) for w in words)
Oct. 8, 2013
Comments: