


__snake_case      = {
    "meter": "m",
    "kilometer": "km",
    "megametre": "Mm",
    "gigametre": "Gm",
    "terametre": "Tm",
    "petametre": "Pm",
    "exametre": "Em",
    "zettametre": "Zm",
    "yottametre": "Ym",
}
# Exponent of the factor(meter)
__snake_case      = {
    "m": 0,
    "km": 3,
    "Mm": 6,
    "Gm": 9,
    "Tm": 12,
    "Pm": 15,
    "Em": 18,
    "Zm": 21,
    "Ym": 24,
}






def 				_lowercase     (		SCREAMING_SNAKE_CASE_ :		Any							,	SCREAMING_SNAKE_CASE_ :		List[str]							,	SCREAMING_SNAKE_CASE_ :		Optional[Any]						):





			"""simple docstring"""




			UpperCamelCase								=       from_type.lower().strip("""s"""						)
			UpperCamelCase								=       to_type.lower().strip("""s"""						)

			UpperCamelCase								=       UNIT_SYMBOL.get(A__							,	A__						)
			UpperCamelCase								=       UNIT_SYMBOL.get(A__							,	A__						)

			if from_sanitized not in METRIC_CONVERSION:
						UpperCamelCase								=       (
						    f'Invalid \'from_type\' value: {from_type!r}.\n'
						    f'Conversion abbreviations are: {", ".join(A__						)}'
						)
						raise ValueError(A__						)
			if to_sanitized not in METRIC_CONVERSION:
						UpperCamelCase								=       (
						    f'Invalid \'to_type\' value: {to_type!r}.\n'
						    f'Conversion abbreviations are: {", ".join(A__						)}'
						)
						raise ValueError(A__						)
			UpperCamelCase								=       METRIC_CONVERSION[from_sanitized]
			UpperCamelCase								=       METRIC_CONVERSION[to_sanitized]
			UpperCamelCase								=       1

			if from_exponent > to_exponent:
						UpperCamelCase								=       from_exponent - to_exponent
			else:
						UpperCamelCase								=       -(to_exponent - from_exponent)

			return value * pow(10							,	A__						)


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

			testmod()






'''simple docstring'''
import enum
import shutil
import sys


lowercase__				, lowercase__											=shutil.get_terminal_size()

lowercase__											={'UP': 'A', 'DOWN': 'B', 'RIGHT': 'C', 'LEFT': 'D'}







class   a_ (      enum.Enum					):
			lowerCamelCase__	:			int       =    0
			lowerCamelCase__	:			Union[str, Any]       =    1







def      UpperCamelCase_				(      A__  ,      A__=""						):
	sys.stdout.write(str(A__						) + end						)
	sys.stdout.flush()






def      UpperCamelCase_				(      A__  ,      A__  ,      A__=""						):
	forceWrite(F'''\u001b[{color}m{content}\u001b[0m'''  ,      A__						)






def      UpperCamelCase_				(      ):
	forceWrite("""\r"""						)






def      UpperCamelCase_				(      A__  ,      A__						):
	forceWrite(F'''\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}'''						)






def      UpperCamelCase_				(      ):
	forceWrite(""" """ * TERMINAL_WIDTH						)
	reset_cursor()






def      UpperCamelCase_				(      ):
	reset_cursor()
	forceWrite("""-""" * TERMINAL_WIDTH						)
