






def      lowerCAmelCase__	(    _a       :			list    ):
		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"    )
		if len(_a    ) == 1:
				return True
		snake_case_				:							Optional[Any]						 =       series[1] - series[0]
		for index in range(len(_a    ) - 1    ):
				if series[index + 1] - series[index] != common_diff:
						return False
		return True

def      lowerCAmelCase__	(    _a       :			list    ):
		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_				:							Optional[int]						 =       0
		for val in series:
				answer += val
		return answer / len(_a    )


if __name__ == "__main__":
							import doctest

							doctest.testmod()








def      lowerCAmelCase__	(    _a       :			int    ):
		if num < 0:
				return False

		snake_case_				:							int						 =       num
		snake_case_				:							int						 =       0
		while num > 0:
				snake_case_				:							Union[str, Any]						 =       rev_num * 10 + (num % 10)
				num //= 10

		return num_copy == rev_num


if __name__ == "__main__":
							import doctest

							doctest.testmod()
