
def     _a					(						lowerCamelCase,	lowerCamelCase							):
 if a < 0 or b < 0:
  raise ValueError("""the value of both inputs must be positive"""							)

 lowerCamelCase		:	Dict							=      str(bin(lowerCamelCase							)							)[2:]  # remove the leading "0b"
 lowerCamelCase		:	List[Any]							=      str(bin(lowerCamelCase							)							)[2:]  # remove the leading "0b"

 lowerCamelCase		:	str							=      max(len(lowerCamelCase							),	len(lowerCamelCase							)							)

 return "0b" + "".join(
     str(int(char_a != char_b							)							)
     for char_a, char_b in zip(a_binary.zfill(lowerCamelCase							),	b_binary.zfill(lowerCamelCase							)							)							)


if __name__ == "__main__":
      import doctest

      doctest.testmod()






_lowerCamelCase					   ={
    "joule": 1.0,
    "kilojoule": 1_0_0_0,
    "megajoule": 1_0_0_0_0_0_0,
    "gigajoule": 1_0_0_0_0_0_0_0_0_0,
    "wattsecond": 1.0,
    "watthour": 3_6_0_0,
    "kilowatthour": 3_6_0_0_0_0_0,
    "newtonmeter": 1.0,
    "calorie_nutr": 4_1_8_6.8,
    "kilocalorie_nutr": 4_1_8_6_8_0_0.0_0,
    "electronvolt": 1.6_0_2_1_7_6_6_3_4E-1_9,
    "britishthermalunit_it": 1_0_5_5.0_5_5_8_5,
    "footpound": 1.355818,
}





def     _a					(						lowerCamelCase,	lowerCamelCase,	lowerCamelCase							):
 if to_type not in ENERGY_CONVERSION or from_type not in ENERGY_CONVERSION:
  lowerCamelCase		:	Dict							=      (
      F'''Incorrect \'from_type\' or \'to_type\' value: {from_type!r}, {to_type!r}\n'''
      F'''Valid values are: {", ".join(lowerCamelCase							)}'''
  )
  raise ValueError(lowerCamelCase							)
 return value * ENERGY_CONVERSION[from_type] / ENERGY_CONVERSION[to_type]


if __name__ == "__main__":
      import doctest

      doctest.testmod()




