


"""simple docstring"""





import re


def      _snake_case						(						_snake_case				:			str			):
      return [char.split() for char in re.split(r'''[^ a-z A-Z 0-9 \s]''' ,   str_			)]


def      _snake_case						(						_snake_case				:			str			):
      lowerCAmelCase					:	Optional[int]       =   split_input(str_			)
      return "".join(
          [''''''.join([char.capitalize() for char in sub_str]			) for sub_str in string_split]			)


def      _snake_case						(						_snake_case				:			str ,   _snake_case				:			bool ,   _snake_case				:			str			):
      try:
            lowerCAmelCase					:	Optional[int]       =   split_input(_snake_case			)
            if upper:
                  lowerCAmelCase					:	Tuple       =   ''''''.join(
                      [
                          separator.join([char.upper() for char in sub_str]			)
                          for sub_str in string_split
                      ]			)
            else:
                  lowerCAmelCase					:	str       =   ''''''.join(
                      [
                          separator.join([char.lower() for char in sub_str]			)
                          for sub_str in string_split
                      ]			)
            return res_str
      except IndexError:
            return "not valid string"


def      _snake_case						(						_snake_case				:			str			):
      return to_simple_case(_snake_case			)


def      _snake_case						(						_snake_case				:			str			):
      try:
            lowerCAmelCase					:	int       =   to_simple_case(_snake_case			)
            return res_str[0].lower() + res_str[1:]
      except IndexError:
            return "not valid string"


def      _snake_case						(						_snake_case				:			str ,   _snake_case				:			bool			):
      return to_complex_case(_snake_case ,   _snake_case ,   '''_'''			)


def      _snake_case						(						_snake_case				:			str ,   _snake_case				:			bool			):
      return to_complex_case(_snake_case ,   _snake_case ,   '''-'''			)


if __name__ == "__main__":
 __import__('''doctest''').testmod()






"""simple docstring"""





def      _snake_case						(						_snake_case				:			float ,   _snake_case				:			list[float]			):
      if discount_rate < 0:
            raise ValueError('''Discount rate cannot be negative'''			)
      if not cash_flows:
            raise ValueError('''Cash flows list cannot be empty'''			)
      lowerCAmelCase					:	List[str]       =   sum(
          cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_snake_case			)			)
      return round(_snake_case ,   ndigits=2			)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


