Still trying to get anywhere with this. Why am I getting @ symbol here?
x = 123456 y = x.to_bytes(4, byteorder='big') print (y) y = struct.pack("I",x) print (y)output:
Output:b'\x00\x01\xe2@'
b'@\xe2\x01\x00'