


snake_case							:	Union[str, Any]					      =				8.3144598






def 							__lowercase       (			__lowerCAmelCase							:    float ,   __lowerCAmelCase							:    float       ):
							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
						snake_case							:	Optional[Any]					      =				3_00
						snake_case							:	int					      =				28
						snake_case							:	int					      =				rms_speed_of_molecule(temperature, molar_mass)
						print(f"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")








from __future__ import annotations






def 							__lowercase       (			__lowerCAmelCase							:    float ,   __lowerCAmelCase							:    float ,   __lowerCAmelCase							:    float       ):
							if (voltage, current, resistance).count(0       ) != 1:
														raise ValueError('One and only one argument must be 0'       )
							if resistance < 0:
														raise ValueError('Resistance cannot be negative'       )
							if voltage == 0:
														return {"voltage": float(current * resistance       )}
							elif current == 0:
														return {"current": voltage / resistance}
							elif resistance == 0:
														return {"resistance": voltage / current}
							else:
														raise ValueError('Exactly one argument must be 0'       )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




