python binary string to string code example
Example 1: format binary string python
>>> format(14, '#010b')
'0b00001110'
Example 2: python binary to string
testing = "Satana Blabbers".encode() # string to bytes
# now bytes to string
print(testing.decode(), testing.decode('utf-8')) # both are same