python read binary code example Example: python read binary with open("data.bin", "rb") as data: byte = data.read() print(byte)