def result(a): b = bit2int(a[:1]) c = bit2int(a[1:]) m = b + c return int2bit(m, 2)
def result(a): b = bit2int(a[:3]) c = bit2int(a[3:]) m = b * c return int2bit(m,6)
def result(a): b = bit2int(a[:4]) c = bit2int(a[4:]) m = b * c return int2bit(m,8)
def result(a): b = bit2int(a[:2]) c = bit2int(a[2:]) m = b*c return int2bit(m,4)