title: Concatenate numbers in binary
body: <p>When converting a number in binary in Python what you get is the following:</p>
  
  <pre><code>b = bin(77)
  print(b)  # 0b1001101
  </code></pre>
  
  <p>When I was expecting <code>01001101</code>. I am guessing that the <code>b</code> is there to let Python know that this is a binary number and not some integer. And that is ok <strong>within Python</strong> but what is considered safe practise here if you want to communicate with the outside world? <em>This might be a silly example but online converters for instance do not recognise the above binary</em>.</p>
  
  <p>Would simply removing <code>b</code> always do the trick? Because I seem to be running into problems trying to code the Ascii85 encoder/decoder where concatenations of binary numbers take place. You can take a look at this example <a href="https://en.wikipedia.org/wiki/Ascii85" rel="nofollow noreferrer">here</a>.</p>
  
  <p>My code is this case produces the following:</p>
  
  <pre><code>ch = 'Man '
  list_ = [ord(x) for x in ch]  # [77, 97, 110, 32]
  binary_repr = ''.join(bin(x) for x in list_)  # 0b10011010b11000010b11011100b100000
  # When it should be                                01001101011000010110111000100000
  </code></pre>
  
  <p>Notice that simply replacing the <code>b</code> with nothing doesn't quite cut it here. This is probably some dumm mistake but can someone clear things up for me?</p>