



'''simple docstring'''





import re

from filelock import FileLock


try:
 import nltk

 SCREAMING_SNAKE_CASE__          =  True
except (ImportError, ModuleNotFoundError):
 SCREAMING_SNAKE_CASE__          =  False

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




def 							lowerCamelCase	(					_snake_case	:    str							):





    '''simple docstring'''


    re.sub("<n>"  ,""  ,__lowerCAmelCase							)  # 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(__lowerCAmelCase							)							)












UpperCamelCase    							=      8.3_144_598


def 				__lowerCamelCase     (							__lowerCAmelCase							:					float					,							__lowerCAmelCase							:					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
       UpperCamelCase    							=      300
       UpperCamelCase    							=      28
       UpperCamelCase    							=      rms_speed_of_molecule(temperature, molar_mass)
       print(F"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")



