Hey I have this code where I want to represent 1 as two bytes but when I access it back I am getting (1,) I do not want the comma and want to equate it like y==1
var = struct.pack(' h ', 1)
x = calcsize('h')
print(x)
y=struct.unpack('h', var)
print(y)