I am converting a decimal number to a binary number using this code -
file.write(f"reg[{addr}]" + " = " + "8\\\'b{0:08b}".for