


"""simple docstring"""






def 				A_       ( snake_case__		)					->  bool:
			if not isinstance(snake_case__       ,					snake_case__		):
						raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''		)
			if len(snake_case__		) == 0:
						raise ValueError('''Input list must be a non empty list'''		)
			if len(snake_case__		) == 1:
						return True
			_UpperCamelCase					:Optional[Any]					     =	series[1] - series[0]
			for index in range(len(snake_case__		) - 1		):
						if series[index + 1] - series[index] != common_diff:
									return False
			return True





def 				A_       ( snake_case__		)					->  float:
			if not isinstance(snake_case__       ,					snake_case__		):
						raise ValueError('''Input series is not valid, valid series - [2, 4, 6]'''		)
			if len(snake_case__		) == 0:
						raise ValueError('''Input list must be a non empty list'''		)
			_UpperCamelCase					:Union[str, Any]					     =	0
			for val in series:
						answer += val
			return answer / len(snake_case__		)


if __name__ == "__main__":
					import doctest

					doctest.testmod()





"""simple docstring"""






def 				A_       ( snake_case__       ,					snake_case__ = " "		)					->  list:
			_UpperCamelCase					:List[str]					     =	[]

			_UpperCamelCase					:int					     =	0
			for index, char in enumerate(snake_case__		):
						if char == separator:
									split_words.append(string[last_index:index]		)
									_UpperCamelCase					:Dict					     =	index + 1
						elif index + 1 == len(snake_case__		):
									split_words.append(string[last_index : index + 1]		)
			return split_words


if __name__ == "__main__":
					from doctest import testmod

					testmod()

