

'''simple docstring'''
from abc import ABC, abstractmethod
from argparse import ArgumentParser

class 						__magic_name__   (							__SCREAMING_SNAKE_CASE ):







 @staticmethod
 @abstractmethod
 def 						_A(       snake_case_   ):
   raise NotImplementedError()







 @abstractmethod
 def 						_A(       self   ):
   raise NotImplementedError()


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







def 							A__       (    lowerCamelCase  ,     lowerCamelCase  ,     lowerCamelCase    )	->						float:
				UpperCamelCase_:				Any						=    from_type.lower().strip("""s"""    )
				UpperCamelCase_:				int						=    to_type.lower().strip("""s"""    )

				UpperCamelCase_:				Any						=    UNIT_SYMBOL.get(lowerCamelCase  ,     lowerCamelCase    )
				UpperCamelCase_:				str						=    UNIT_SYMBOL.get(lowerCamelCase  ,     lowerCamelCase    )

				if from_sanitized not in METRIC_CONVERSION:
								UpperCamelCase_:				Optional[int]						=    (
								    F'''Invalid \'from_type\' value: {from_type!r}.\n'''
								    F'''Conversion abbreviations are: {", ".join(lowerCamelCase    )}'''
								)
								raise ValueError(lowerCamelCase    )
				if to_sanitized not in METRIC_CONVERSION:
								UpperCamelCase_:				Dict						=    (
								    F'''Invalid \'to_type\' value: {to_type!r}.\n'''
								    F'''Conversion abbreviations are: {", ".join(lowerCamelCase    )}'''
								)
								raise ValueError(lowerCamelCase    )
				UpperCamelCase_:				Union[str, Any]						=    METRIC_CONVERSION[from_sanitized]
				UpperCamelCase_:				str						=    METRIC_CONVERSION[to_sanitized]
				UpperCamelCase_:				Tuple						=    1

				if from_exponent > to_exponent:
								UpperCamelCase_:				Union[str, Any]						=    from_exponent - to_exponent
				else:
								UpperCamelCase_:				Dict						=    -(to_exponent - from_exponent)

				return value * pow(10  ,     lowerCamelCase    )


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

							testmod()






