i would like to implement XOR operation of 1000000^10100001.
def keygen(key):
print (key)
k0 = key
w0 = k0[0:8]
w1 = k0[8:]
w2 = int(w1) ^ int(10000000)
But im not getting the correct output. My w1 is:10100001 and my binary o.p w2 is:0b100110001011110110000010.
I should get: 00100001
0b1000000b10000000.