>>> int('1010100110', 2)
678
On Jun 25, 7:06 am, krishna wrote:
> Hi Guys,
>
> I need to convert 1010100110 boolean value to some think like 2345, if
> its possible then post me your comment on this
>
> Advanced thanks for all
>
> Narayana perumal.G
--
http://mail.python.org/mailman/listinfo/py
krishna wrote:
> I need to convert 1010100110 boolean value to some think like 2345, if
> its possible then post me your comment on this
Yes, sure. You can simply sum up the digit values and then format them as
decimal number. You can also just look up the number:
def decode_binary(input):
Hi Guys,
I need to convert 1010100110 boolean value to some think like 2345, if
its possible then post me your comment on this
Advanced thanks for all
Narayana perumal.G
--
http://mail.python.org/mailman/listinfo/python-list