title: How to convert 2 to "10" in python
body: <p>I need to convert the string "2" to the string "10" in binary, I'm using bitarray.</p>
  
  <pre><code>from bitarray import bitarray
  a=bitarray()
  a.fromstring("2")
  print(a)
  </code></pre>
  
  <p>What appears for console is <code>bitarray('00110010')</code>, I just want that only appears "10".</p>
  
  <p>There is any way of doing this with Bitarray or I have to use another library?</p>