





_UpperCAmelCase				       = {hex(i)[2:]: i for i in range(1_6)}  # Use [:2] to strip off the leading '0x'




def        lowerCAmelCase_       (							UpperCamelCase_     )   ->						int:
       UpperCamelCase_      				=     hex_string.strip().lower()
       if not hex_string:
              raise ValueError("Empty string was passed to the function"     )
       UpperCamelCase_      				=     hex_string[0] == '-'
       if is_negative:
              UpperCamelCase_      				=     hex_string[1:]
       if not all(char in hex_table for char in hex_string     ):
              raise ValueError("Non-hexadecimal value was passed to the function"     )
       UpperCamelCase_      				=     0
       for char in hex_string:
              UpperCamelCase_      				=     16 * decimal_number + hex_table[char]
       return -decimal_number if is_negative else decimal_number


if __name__ == "__main__":
     from doctest import testmod

     testmod()







def 					snake_case					(							A			)							->							int:




	'''simple docstring'''


	if not isinstance(A						,   A			):
		raise ValueError('double_factorial() only accepts integral values'			)
	if n < 0:
		raise ValueError('double_factorial() not defined for negative values'			)
	return 1 if n <= 1 else n * double_factorial(n - 2			)


if __name__ == "__main__":
							import doctest

							doctest.testmod()
