


'''simple docstring'''


def 			snake_case_   (  SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





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

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







def 			snake_case_   (  SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





				if point:
								if isinstance(SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     ):
												for item in point:
																if not isinstance(SCREAMING_SNAKE_CASE__							,      (int, float)     ):
																				_SCREAMING_SNAKE_CASE :       List[str]     		=      (
																				    """Expected a list of numbers as input, found """
																				    f"""{type(SCREAMING_SNAKE_CASE__     ).__name__}"""
																				)
																				raise TypeError(SCREAMING_SNAKE_CASE__     )
								else:
												_SCREAMING_SNAKE_CASE :       int     		=      f"""Expected a list of numbers as input, found {type(SCREAMING_SNAKE_CASE__     ).__name__}"""
												raise TypeError(SCREAMING_SNAKE_CASE__     )
				else:
								raise ValueError("""Missing an input"""     )







def 			snake_case_   (  SCREAMING_SNAKE_CASE__							,      SCREAMING_SNAKE_CASE__     ):







				"""simple docstring"""





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

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


if __name__ == "__main__":
				import doctest

				doctest.testmod()








'''simple docstring'''


import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
				import ctypes
				import msvcrt  # noqa





				class     lowercase__  (						ctypes.Structure					):





											'''simple docstring'''


											A_							:      Optional[Any]      	=  [("""size""", ctypes.c_int), ("""visible""", ctypes.c_byte)]







def 			snake_case_   (  ):







				"""simple docstring"""





				if os.name == "nt":
								_SCREAMING_SNAKE_CASE :       Tuple     		=      CursorInfo()
								_SCREAMING_SNAKE_CASE :       Tuple     		=      ctypes.windll.kernelaa.GetStdHandle(-11     )
								ctypes.windll.kernelaa.GetConsoleCursorInfo(SCREAMING_SNAKE_CASE__							,      ctypes.byref(SCREAMING_SNAKE_CASE__     )     )
								_SCREAMING_SNAKE_CASE :       Optional[Any]     		=      False
								ctypes.windll.kernelaa.SetConsoleCursorInfo(SCREAMING_SNAKE_CASE__							,      ctypes.byref(SCREAMING_SNAKE_CASE__     )     )
				elif os.name == "posix":
								sys.stdout.write("""\033[?25l"""     )
								sys.stdout.flush()







def 			snake_case_   (  ):







				"""simple docstring"""





				if os.name == "nt":
								_SCREAMING_SNAKE_CASE :       int     		=      CursorInfo()
								_SCREAMING_SNAKE_CASE :       List[str]     		=      ctypes.windll.kernelaa.GetStdHandle(-11     )
								ctypes.windll.kernelaa.GetConsoleCursorInfo(SCREAMING_SNAKE_CASE__							,      ctypes.byref(SCREAMING_SNAKE_CASE__     )     )
								_SCREAMING_SNAKE_CASE :       Tuple     		=      True
								ctypes.windll.kernelaa.SetConsoleCursorInfo(SCREAMING_SNAKE_CASE__							,      ctypes.byref(SCREAMING_SNAKE_CASE__     )     )
				elif os.name == "posix":
								sys.stdout.write("""\033[?25h"""     )
								sys.stdout.flush()







@contextmanager
def 			snake_case_   (  ):







				"""simple docstring"""





				try:
								hide_cursor()
								yield
				finally:
								show_cursor()




