


"""simple docstring"""




from collections import namedtuple

__magic_name__	:   Optional[int]          =							namedtuple('from_to', 'from_ to')

__magic_name__	:   Dict          =							{
    'atm': from_to(1, 1),
    'pascal': from_to(0.0_0_0_0_0_9_8, 1_0_1_3_2_5),
    'bar': from_to(0.9_8_6_9_2_3, 1.0_1_3_2_5),
    'kilopascal': from_to(0.0_0_9_8_6_9_2_3, 1_0_1.3_2_5),
    'megapascal': from_to(9.8_6_9_2_3, 0.1_0_1_3_2_5),
    'psi': from_to(0.0_6_8_0_4_6, 1_4.6_9_5_9),
    'inHg': from_to(0.0_3_3_4_2_1_1, 2_9.9_2_1_3),
    'torr': from_to(0.0_0_1_3_1_5_7_9, 7_6_0),
}





def 			a_   (  lowercase__   :float, lowercase__   :str, lowercase__   :str    ):
			if from_type not in PRESSURE_CONVERSION:
						raise ValueError(
						    f'Invalid \'from_type\' value: {from_type!r}  Supported values are:\n'
						    + """, """.join(lowercase__    )    )
			if to_type not in PRESSURE_CONVERSION:
						raise ValueError(
						    f'Invalid \'to_type\' value: {to_type!r}.  Supported values are:\n'
						    + """, """.join(lowercase__    )    )
			return (
			    value * PRESSURE_CONVERSION[from_type].from_ * PRESSURE_CONVERSION[to_type].to
			)


if __name__ == "__main__":
					import doctest

					doctest.testmod()








"""simple docstring"""




from __future__ import annotations

import re





def 			a_   (  lowercase__   :list[str]    ):

			def alphanum_key(lowercase__   :int    ):
						return [int(lowercase__    ) if s.isdigit() else s.lower() for s in re.split("""([0-9]+)""", lowercase__    )]

			return sorted(lowercase__, key=lowercase__    )


if __name__ == "__main__":
					import doctest

					doctest.testmod()




