Are there any canned Python methods to convert an Integer (or Long) into a binary string in Python?
There are a myriad of dec2bin() functions out on Google... But I
you can do like that :
bin(10)[2:]
or :
f = str(bin(10)) c = [] c.append("".join(map(int, f[2:]))) print c