



def      A_ (		__a       :			list[int | list]	,						__a       :			int						):

				"""simple docstring"""
				a__			 =						0
				for ele in arr:
								total_sum += product_sum(__a	,						depth + 1						) if isinstance(__a	,						__a						) else ele
				return total_sum * depth

def      A_ (		__a       :			list[int | list]						):

				"""simple docstring"""
				return product_sum(__a	,						1						)


if __name__ == "__main__":
	import doctest

	doctest.testmod()






from __future__ import annotations

def      A_ (		__a       :			list[int | float]						):

				"""simple docstring"""
				if len(__a						) == 0:
								raise ValueError("""find_max() arg is an empty sequence"""						)
				a__			 =						nums[0]
				for x in nums:
								if x > max_num:
												a__			 =						x
				return max_num


if __name__ == "__main__":
	import doctest

	doctest.testmod(verbose=True)

