

'''simple docstring'''

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

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


if __name__ == "__main__":
						import doctest

						doctest.testmod()








'''simple docstring'''

lowerCAmelCase_     =      "\n# Installation de Transformers\n! pip install transformers datasets\n# Pour installer à partir du code source au lieu de la dernière version, commentez la commande ci-dessus et décommentez la suivante.\n# ! pip install git+https://github.com/huggingface/transformers.git\n"

lowerCAmelCase_     =      [{"type": "code", "content": INSTALL_CONTENT}]
lowerCAmelCase_     =      {
    "{processor_class}": "FakeProcessorClass",
    "{model_class}": "FakeModelClass",
    "{object_class}": "FakeObjectClass",
}





