






"""simple docstring"""


import operator




def       snake_case  (A_				:Union[str, Any]     ,      A_				:List[str] = False     ,      A_				:Tuple = None				):







  '''simple docstring'''

  a					:      Dict    =       operator.lt if reverse else operator.gt
  a					:      Optional[int]    =       solution or []

  if not arr:
    return solution

  a					:      Optional[int]    =       [arr.pop(0				)]
  for i, item in enumerate(lowercase__				):
    if _operator(lowercase__     ,      sublist[-1]				):
      sublist.append(lowercase__				)
      arr.pop(lowercase__				)

    #  merging sublist into solution list
  if not solution:
    solution.extend(lowercase__				)
  else:
    while sublist:
      a					:      Tuple    =       sublist.pop(0				)
      for i, xx in enumerate(lowercase__				):
        if not _operator(lowercase__     ,      lowercase__				):
          solution.insert(lowercase__     ,      lowercase__				)
          break
      else:
        solution.append(lowercase__				)

  strand_sort(lowercase__     ,      lowercase__     ,      lowercase__				)
  return solution


if __name__ == "__main__":
   assert strand_sort([4, 3, 5, 1, 2]) == [1, 2, 3, 4, 5]
   assert strand_sort([4, 3, 5, 1, 2], reverse=True) == [5, 4, 3, 2, 1]












"""simple docstring"""


_UpperCamelCase    :   List[Any]   			=						8.31_44_62  # Unit - J mol-1 K-1




def       snake_case  (A_				:float     ,      A_				:float     ,      A_				:float				):







  '''simple docstring'''

  if moles < 0 or kelvin < 0 or volume < 0:
    raise ValueError('Invalid inputs. Enter positive value.'				)
  return moles * kelvin * UNIVERSAL_GAS_CONSTANT / volume




def       snake_case  (A_				:float     ,      A_				:float     ,      A_				:float				):







  '''simple docstring'''

  if moles < 0 or kelvin < 0 or pressure < 0:
    raise ValueError('Invalid inputs. Enter positive value.'				)
  return moles * kelvin * UNIVERSAL_GAS_CONSTANT / pressure


if __name__ == "__main__":
   from doctest import testmod

   testmod()




