Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple, straightforward solution. solution in Clear category for Parity Bit Generator by dunpealer
def checkio(message):
clean = []
for n in message:
bn = bin(n)
bn, p = bn[:-1], int(bn[-1])
if bn.count('1') % 2 == p:
clean.append(chr(int(bn, 2)))
return ''.join(clean)
Sept. 7, 2015
Comments: