title: what is the best way to represent a char in its bits representation(Python)
body: <p>I'm looking for the best way to represent a char in its bits representation <strong>by a given number of length(a variable)</strong>
  For example:
  in bytes representation, the number '5' is: 0101 if the given length is 4. </p>