def polmul(n1,n2):
n1 = int (n1, 2)
s = int ('0', 2)
for c in n2 [:: -1]:
if (c == '1'):
s = s ^ n1
n1*=2
Bin_out = bin(s)[2:].zfill(2)
Mul = str(Bin_out)
return Mul
n1 = '0000011'
n2 = '100010111'
x = polmul(n1,n2)
(result is 1100111001)
It is skipping zeros at the beginning. I need result 000001100111001 Please help