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