title: How to convert a string of a binary number into a binary number?
body: <pre><code>x = '0b001'
  </code></pre>
  <p>I need <code>x</code> to be <code>0b001</code> so that is a binary number, I tried doing <code>int('0b001')</code> however the 'b' gives an error due to being a character.</p>
  <p>How to convert <code>'0b001'</code> into a binary?</p>