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