In python I have a very large string of 0s and 1s. i.e '010100100101110101001...' etc.

I want to convert this to BINARY without first converting it to decimal. Then I want to take the resulting binary number and convert it to it's decimal equivalent. Fastest way possible because it is about 72k bits.

Thanks in advance.

OR, If anyone knows maple... How could I perform the python operation:

>string='010101010101'

stringB=string*5

>>print stringB

>'010101010101010101010101010101010101010101010101010101010101'

in Maple?? Its a new programing language for me, but I know how to do binary conversions in it.

-Mark