I'd simply like to convert a base-2 binary number string into an int, something like this:
You use the built-in
[int() function], and pass it the base of the input number, i.e.
2 for a binary number:
>>> int('11111111', 2) 255
Update: I removed the use of