Why does my code not print the base 10 equivalent of the binary string?
There are two parts you need to do correctly to print the base 10 equivalent of the binary number
- We must provide the first parameter as the string of the binary number we want to convert
- We must provide the second parameter as the base we’re currently giving as the first parameter, which is
2in this case