DECimal number to BINary by chiz

a=input();s=""\x0d
while a>0:\x0d
 if a%2:s+="1"\x0d
 else:s+="0"\x0d
 a=a>>1\x0d
print s[::-1]

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

download

return to the top page