






"""simple docstring"""

def _lowerCAmelCase	(  __lowerCamelCase:str   ):

						'''simple docstring'''






						__magic_name__            =     hex_num.strip()
						if not hex_num:
												raise ValueError("No value was passed to the function"   )

						__magic_name__            =     hex_num[0] == "-"
						if is_negative:
												__magic_name__            =     hex_num[1:]

						try:
												__magic_name__            =     int(_UpperCamelCase ,						1_6   )
						except ValueError:
												raise ValueError("Invalid value was passed to the function"   )

						__magic_name__            =     ""
						while int_num > 0:
												__magic_name__            =     str(int_num % 2   ) + bin_str
												int_num >>= 1

						return int(("-" + bin_str) if is_negative else bin_str   )


if __name__ == "__main__":
					import doctest

					doctest.testmod()











"""simple docstring"""

def _lowerCAmelCase	(  __lowerCamelCase:list ,						__lowerCamelCase:list   ):

						'''simple docstring'''






						_validate_point(__lowerCamelCase   )
						_validate_point(__lowerCamelCase   )
						if len(__lowerCamelCase   ) != len(__lowerCamelCase   ):
												raise ValueError("Both points must be in the same n-dimensional space"   )

						return float(sum(abs(a - b   ) for a, b in zip(__lowerCamelCase ,						__lowerCamelCase   )   )   )






def _lowerCAmelCase	(  __lowerCamelCase:list[float]   ):

						'''simple docstring'''






						if point:
												if isinstance(__lowerCamelCase ,						__lowerCamelCase   ):
																		for item in point:
																								if not isinstance(__lowerCamelCase ,						(int, float)   ):
																														__magic_name__            =     (
																														    "Expected a list of numbers as input, found "
																														    f'''{type(__lowerCamelCase   ).__name__}'''
																														)
																														raise TypeError(__lowerCamelCase   )
												else:
																		__magic_name__            =     f'''Expected a list of numbers as input, found {type(__lowerCamelCase   ).__name__}'''
																		raise TypeError(__lowerCamelCase   )
						else:
												raise ValueError("Missing an input"   )






def _lowerCAmelCase	(  __lowerCamelCase:list ,						__lowerCamelCase:list   ):

						'''simple docstring'''






						_validate_point(__lowerCamelCase   )
						_validate_point(__lowerCamelCase   )
						if len(__lowerCamelCase   ) != len(__lowerCamelCase   ):
												raise ValueError("Both points must be in the same n-dimensional space"   )

						return float(sum(abs(x - y   ) for x, y in zip(__lowerCamelCase ,						__lowerCamelCase   )   )   )


if __name__ == "__main__":
			import doctest

			doctest.testmod()



