binary to string python 3 code example Example: format binary string python >>> format(14, '#010b') '0b00001110'