





'''simple docstring'''






def   __A    (				a_    :	str   ,a_    :	str						):
		lowerCAmelCase  :     int       						= len(_A						)
		lowerCAmelCase  :     int       						= len(_A						)
		lowerCAmelCase  :     int       						= (
		    first_str_length if first_str_length > second_str_length else second_str_length
		)
		lowerCAmelCase  :     list       						= []
		for char_count in range(_A						):
				if char_count < first_str_length:
						output_list.append(first_str[char_count]						)
				if char_count < second_str_length:
						output_list.append(second_str[char_count]						)
		return "".join(_A						)


if __name__ == "__main__":
					print(alternative_string_arrange("""AB""", """XYZ"""), end=""" """)




'''simple docstring'''

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


if __name__ == "__main__":
  import doctest

  doctest.testmod()




