



_lowercase     							=						8.3_144_598






def      _A				(UpperCamelCase		:      float      ,			UpperCamelCase		:      float )  ->float:



			'''simple docstring'''







			if temperature < 0:
						raise Exception("""Temperature cannot be less than 0 K""" )
			if molar_mass <= 0:
						raise Exception("""Molar mass cannot be less than or equal to 0 kg/mol""" )
			else:
						return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
				import doctest

				# run doctest
				doctest.testmod()

				# example
				_lowercase     							=						3_00
				_lowercase     							=						28
				_lowercase     							=						rms_speed_of_molecule(temperature, molar_mass)
				print(F'''Vrms of Nitrogen gas at 300 K is {vrms} m/s''')








def      _A				(UpperCamelCase		:      List[Any]      ,			UpperCamelCase		:      Dict )  ->List[str]:



			'''simple docstring'''







			lowerCamelCase__ :      int								=		[1]
			for i in range(2      ,			UpperCamelCase ):
						factorials.append(factorials[-1] * i )
			assert 0 <= k < factorials[-1] * n, "k out of bounds"

			lowerCamelCase__ :      Union[str, Any]								=		[]
			lowerCamelCase__ :      Optional[Any]								=		list(range(UpperCamelCase ) )

			# Find permutation
			while factorials:
						lowerCamelCase__ :      Union[str, Any]								=		factorials.pop()
						lowerCamelCase__							,lowerCamelCase__ :      Union[str, Any]								=		divmod(UpperCamelCase      ,			UpperCamelCase )
						permutation.append(elements[number] )
						elements.remove(elements[number] )
			permutation.append(elements[0] )

			return permutation


if __name__ == "__main__":
				import doctest

				doctest.testmod()



