



_lowercase						  =		8.3_144_598



def 		lowerCAmelCase__    (					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
   _lowercase						  =		300
   _lowercase						  =		28
   _lowercase						  =		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 		lowerCAmelCase__    (					UpperCamelCase_				:       str ,       UpperCamelCase_				:       list[str] | None = None	)->  list[list[str]]:
    A__		 =					word_bank or []
    # create a table
    A__		 =					len(UpperCamelCase_	) + 1

    A__		 =					[]
    for _ in range(UpperCamelCase_	):
        table.append([]	)
    # seed value
    A__		 =					[[]]  # because empty string has empty combination

    # iterate through the indices
    for i in range(UpperCamelCase_	):
        # condition
        if table[i] != []:
            for word in word_bank:
                # slice condition
                if target[i : i + len(UpperCamelCase_	)] == word:
                    A__		 =					[
                        [word, *way] for way in table[i]
                    ]
                    # adds the word to every combination the current position holds
                    # now,push that combination to the table[i+len(word)]
                    table[i + len(UpperCamelCase_	)] += new_combinations

    # combinations are in reverse order so reverse for better output
    for combination in table[len(UpperCamelCase_	)]:
        combination.reverse()

    return table[len(UpperCamelCase_	)]


if __name__ == "__main__":
   print(all_construct("jwajalapa", ["jwa", "j", "w", "a", "la", "lapa"]))
   print(all_construct("rajamati", ["s", "raj", "amat", "raja", "ma", "i", "t"]))
   print(
       all_construct(
           "hexagonosaurus",
           ["h", "ex", "hex", "ag", "ago", "ru", "auru", "rus", "go", "no", "o", "s"],
       )
   )
