




lowerCamelCase__ :   List[str]					=							8.314_4598

def 					UpperCAmelCase_							(      __UpperCAmelCase						:	float			,			__UpperCAmelCase						:	float							)					-> 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
   lowerCamelCase__ :   str					=							300
   lowerCamelCase__ :   Union[str, Any]					=							28
   lowerCamelCase__ :   List[Any]					=							rms_speed_of_molecule(temperature, molar_mass)
   print(f'''Vrms of Nitrogen gas at 300 K is {vrms} m/s''')





import re

from filelock import FileLock


try:
   import nltk

   lowerCamelCase__ :   str					=							True
except (ImportError, ModuleNotFoundError):
   lowerCamelCase__ :   Union[str, Any]					=							False

if NLTK_AVAILABLE:
   with FileLock('.lock') as lock:
      nltk.download('punkt', quiet=True)

def 					UpperCAmelCase_							(      __UpperCAmelCase						:	str							)					-> str:
      re.sub('<n>'			,			''			,			__UpperCAmelCase							)  # remove pegasus newline char
      assert NLTK_AVAILABLE, "nltk must be installed to separate newlines between sentences. (pip install nltk)"
      return "\n".join(nltk.sent_tokenize(__UpperCAmelCase							)							)