Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
translate 2 solution in Creative category for Striped Words by Sim0000
src = ',.!?0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
dst = ' aaaaaaaaaa1000100010000010000010001010001000100000100000100010'
def checkio(text):
text = text.translate(str.maketrans(src, dst)).split()
return sum(len(w)>1 and w.isdigit() and not('00' in w or '11' in w) for w in text)
#These "asserts" using only for self-checking and not necessary for auto-testing
May 28, 2014
Comments: