Reverse Bits FIXED by Hendrik

s=''
for n in map(ord,raw_input()):o=0;exec"o=o*2+n%2;n/=2;"*8;s+="%c"%o
print s

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page