





def 			SCREAMING_SNAKE_CASE__							(    UpperCamelCase__:							list      ):
		if not isinstance(UpperCamelCase__   ,				UpperCamelCase__      ):
				raise ValueError("""Input series is not valid, valid series - [1, 2/3, 2]"""      )
		if len(UpperCamelCase__      ) == 0:
				raise ValueError("""Input list must be a non empty list"""      )
		if len(UpperCamelCase__      ) == 1 and series[0] != 0:
				return True
		SCREAMING_SNAKE_CASE__								= []
		SCREAMING_SNAKE_CASE__								= len(UpperCamelCase__      )
		for i in range(0   ,				UpperCamelCase__      ):
				if series[i] == 0:
						raise ValueError("""Input series cannot have 0 as an element"""      )
				rec_series.append(1 / series[i]      )
		SCREAMING_SNAKE_CASE__								= rec_series[1] - rec_series[0]
		for index in range(2   ,				UpperCamelCase__      ):
				if rec_series[index] - rec_series[index - 1] != common_diff:
						return False
		return True






def 			SCREAMING_SNAKE_CASE__							(    UpperCamelCase__:							list      ):
		if not isinstance(UpperCamelCase__   ,				UpperCamelCase__      ):
				raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""      )
		if len(UpperCamelCase__      ) == 0:
				raise ValueError("""Input list must be a non empty list"""      )
		SCREAMING_SNAKE_CASE__								= 0
		for val in series:
				answer += 1 / val
		return len(UpperCamelCase__      ) / answer


if __name__ == "__main__":
	import doctest

	doctest.testmod()






from __future__ import annotations






def 			SCREAMING_SNAKE_CASE__							(    UpperCamelCase__:							list[int | float]      ):
		if len(UpperCamelCase__      ) == 0:
				raise ValueError("""find_min() arg is an empty sequence"""      )
		SCREAMING_SNAKE_CASE__								= nums[0]
		for num in nums:
				SCREAMING_SNAKE_CASE__								= min(UpperCamelCase__   ,				UpperCamelCase__      )
		return min_num


if __name__ == "__main__":
	import doctest

	doctest.testmod(verbose=True)