Comment Comment by d0mine There is an easier way to convert bits to ASCII, filter spaces and reverse the string: >>> n = int(bbs, 2) >>> n.to_bytes((n.bit_length() + 7) // 8, 'big').decode() 's no i sn e h e r pm o c' >>> _.replace(' ', '')[::-1] 'comprehensions' http://stackoverflow.com/questions/7396849/convert-binary-to... parent d0mine 10 years ago