結果 : binary to decimal algorithm python