title: How to print bytes and bits in python
body: <p>I am writing a Skype-like program. Obviously, I need to encrypt every single message before it is sent to the server, but in order to do that, I need it to be translated into machine code. But do I do that in Python? When I try to use encode, all I get is "b' the string I have encoded'". But what I need would be <strong>'00000001 00000010 ...'</strong> so that I can work with machine code directly for better encryption. Thanks.</p>