




from __future__ import annotations

from random import randrange






def  snake_case (							A      )							->							List[str]:
	if len(A      ) < 2:
		return collection
	lowerCamelCase_							:		Optional[int]							       =							randrange(len(A      )      )  # Use random element as pivot
	lowerCamelCase_							:		str							       =							collection[pivot_index]
	lowerCamelCase_							:		list[int]							       =							[]  # All elements greater than pivot
	lowerCamelCase_							:		list[int]							       =							[]  # All elements less than or equal to pivot

	for element in collection[:pivot_index]:
		(greater if element > pivot else lesser).append(A      )

	for element in collection[pivot_index + 1 :]:
		(greater if element > pivot else lesser).append(A      )

	return [*quick_sort(A      ), pivot, *quick_sort(A      )]


if __name__ == "__main__":
							UpperCamelCase__		=						input('Enter numbers separated by a comma:\n').strip()
							UpperCamelCase__		=						[int(item) for item in user_input.split(',')]
							print(quick_sort(unsorted))






UpperCamelCase__		=						{
    "kilogram": 1,
    "gram": pow(1_0, 3),
    "milligram": pow(1_0, 6),
    "metric-ton": pow(1_0, -3),
    "long-ton": 0.0_009_842_073,
    "short-ton": 0.0_011_023_122,
    "pound": 2.2_046_244_202,
    "stone": 0.1_574_731_728,
    "ounce": 35.273_990_723,
    "carrat": 5_0_0_0,
    "atomic-mass-unit": 6.022136652e26,
}

UpperCamelCase__		=						{
    "kilogram": 1,
    "gram": pow(1_0, -3),
    "milligram": pow(1_0, -6),
    "metric-ton": pow(1_0, 3),
    "long-ton": 1_016.04_608,
    "short-ton": 907.184,
    "pound": 0.453_592,
    "stone": 6.35_029,
    "ounce": 0.0_283_495,
    "carrat": 0.0_002,
    "atomic-mass-unit": 1.660540199e-27,
}






def  snake_case (							A						,       A						,       A      )							->							float:




	'''simple docstring'''


	if to_type not in KILOGRAM_CHART or from_type not in WEIGHT_TYPE_CHART:
		lowerCamelCase_							:		Union[str, Any]							       =							(
		    f"Invalid 'from_type' or 'to_type' value: {from_type!r}, {to_type!r}\n"
		    f"Supported values are: {', '.join(A      )}"
		)
		raise ValueError(A      )
	return value * KILOGRAM_CHART[to_type] * WEIGHT_TYPE_CHART[from_type]


if __name__ == "__main__":
							import doctest

							doctest.testmod()
