import save string = \"\" with open(\"image.jpg\", \"rb\") as f: byte = f.read(1) while byte != b\"\": byte = f.read(1) print ((byte)) <
import save string = \"\" with open(\"image.jpg\", \"rb\") as f: byte = f.read(1) while byte != b\"\": byte = f.read(1) print ((byte))
Here is one solution
print(str(byte[2:-1]))