





from pathlib import Path

import fire





def 	a_    (							_lowercase	,						_lowercase	,						_lowercase       ):
						_UpperCamelCase      : Any         =   Path(_lowercase       )
						_UpperCamelCase      : str         =   Path(_lowercase       )
						dest_dir.mkdir(exist_ok=_lowercase       )
						for path in src_dir.iterdir():
												_UpperCamelCase      : List[Any]         =   [x.rstrip() for x in list(path.open().readlines()       )][:n]
												_UpperCamelCase      : Union[str, Any]         =   dest_dir.joinpath(path.name       )
												print(_lowercase       )
												dest_path.open('''w'''       ).write('''\n'''.join(_lowercase       )       )


if __name__ == "__main__":
						fire.Fire(minify)










"""simple docstring"""




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


if __name__ == "__main__":
						import doctest

						doctest.testmod()



