deg = 40 sbinary = format(deg, 'b') print(sbinary) binary = "".join(("01", sbinary)) print(binary)