


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





def 						_lowerCAmelCase							(     _lowerCAmelCase   ,						_lowerCAmelCase   ,						_lowerCAmelCase			)    ->						float:


						'''simple docstring'''






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

						__snake_case				=		UNIT_SYMBOL.get(_lowerCAmelCase   ,						_lowerCAmelCase			)
						__snake_case				=		UNIT_SYMBOL.get(_lowerCAmelCase   ,						_lowerCAmelCase			)

						if from_sanitized not in METRIC_CONVERSION:
												__snake_case				=		(
												    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:
												__snake_case				=		(
												    F'''Invalid \'to_type\' value: {to_type!r}.\n'''
												    F'''Conversion abbreviations are: {', '.join(_lowerCAmelCase			)}'''
												)
												raise ValueError(_lowerCAmelCase			)
						__snake_case				=		METRIC_CONVERSION[from_sanitized]
						__snake_case				=		METRIC_CONVERSION[to_sanitized]
						__snake_case				=		1

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

						return value * pow(10   ,						_lowerCAmelCase			)


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

	testmod()









def 						_lowerCAmelCase							(     _lowerCAmelCase			)    ->						int:


						'''simple docstring'''






						assert column_title.isupper()
						__snake_case				=		0
						__snake_case				=		len(_lowerCAmelCase			) - 1
						__snake_case				=		0

						while index >= 0:
												__snake_case				=		(ord(column_title[index]			) - 64) * pow(26   ,						_lowerCAmelCase			)
												answer += value
												power += 1
												index -= 1

						return answer


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

	testmod()





