title: How to convert string to hex in unpacked BCD format?
body: <p>I want to convert the String Entered convert into BCD.</p>
  
  <pre><code>a = '2015'
  ''.join(format(int(c), '04b') for c in str(int(a, 16)))
  </code></pre>
  
  <p>is giving me <code>'1000001000010011'</code>. But I want it to read <code>0010 0000 0001 0011</code> as in unpacked BCD format. Can anyone help me with this?</p>