How to convert he boolean values into integers

samwyse samwyse at gmail.com
Thu Jun 25 08:33:02 EDT 2009


>>> int('1010100110', 2)
678

On Jun 25, 7:06 am, krishna <gnperu... at gmail.com> 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




More information about the Python-list mailing list