






def    SCREAMING_SNAKE_CASE_							(							__magic_name__					:  list					)		->			int:






	"""simple docstring"""



	if not grid or not grid[0]:
		raise TypeError("""The grid does not contain the appropriate information"""					)

	for cell_n in range(1	,			len(grid[0]					)					):
		grid[0][cell_n] += grid[0][cell_n - 1]
	UpperCamelCase     :List[Any]          =	grid[0]

	for row_n in range(1	,			len(__magic_name__					)					):
		UpperCamelCase     :List[str]          =	grid[row_n]
		UpperCamelCase     :List[Any]          =	fill_row(__magic_name__	,			__magic_name__					)
		UpperCamelCase     :Tuple          =	grid[row_n]

	return grid[-1][-1]

def    SCREAMING_SNAKE_CASE_							(							__magic_name__					:  list	,			__magic_name__					:  list					)		->			list:






	"""simple docstring"""



	current_row[0] += row_above[0]
	for cell_n in range(1	,			len(__magic_name__					)					):
		current_row[cell_n] += min(current_row[cell_n - 1]	,			row_above[cell_n]					)

	return current_row


if __name__ == "__main__":
	import doctest

	doctest.testmod()





'''simple docstring'''




def 				lowerCAmelCase_   (	_lowerCamelCase:   float       ,      _lowerCamelCase:   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"""					)
		__SCREAMING_SNAKE_CASE       :		List[str]           =		sum(
		    cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(_lowerCamelCase					)					)
		return round(_lowerCamelCase       ,      ndigits=2					)


if __name__ == "__main__":
						import doctest

						doctest.testmod()