translate 2 solution in Creative category for Striped Words by Sim0000
src = ',.!?0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
dst = ' aaaaaaaaaa1000100010000010000010001010001000100000100000100010'
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