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