

'''simple docstring'''
lowerCamelCase			:				List[Any] 			=					{
    "meter": "m",
    "kilometer": "km",
    "megametre": "Mm",
    "gigametre": "Gm",
    "terametre": "Tm",
    "petametre": "Pm",
    "exametre": "Em",
    "zettametre": "Zm",
    "yottametre": "Ym",
}
# Exponent of the factor(meter)
lowerCamelCase			:				Dict 			=					{
    "m": 0,
    "km": 3,
    "Mm": 6,
    "Gm": 9,
    "Tm": 1_2,
    "Pm": 1_5,
    "Em": 1_8,
    "Zm": 2_1,
    "Ym": 2_4,
}


def 	_lowerCAmelCase (						_UpperCamelCase						:					float							,			_UpperCamelCase						:					str							,			_UpperCamelCase						:					str    )				->      float:
     """simple docstring"""




     _SCREAMING_SNAKE_CASE							   =from_type.lower().strip('s'    )
     _SCREAMING_SNAKE_CASE							   =to_type.lower().strip('s'    )

     _SCREAMING_SNAKE_CASE							   =UNIT_SYMBOL.get(_UpperCamelCase							,			_UpperCamelCase    )
     _SCREAMING_SNAKE_CASE							   =UNIT_SYMBOL.get(_UpperCamelCase							,			_UpperCamelCase    )

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

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

     return value * pow(10							,			_UpperCamelCase    )


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

     testmod()



'''simple docstring'''
def 	_lowerCAmelCase (						_UpperCamelCase						:					float							,			_UpperCamelCase						:					float    )				->      float:
     """simple docstring"""




     if mass < 0:
          raise ValueError('The mass of a body cannot be negative'    )
     return 0.5 * mass * abs(_UpperCamelCase    ) * abs(_UpperCamelCase    )


if __name__ == "__main__":
     import doctest

     doctest.testmod(verbose=True)
