



def    snake_case_				(    _SCREAMING_SNAKE_CASE   ):
	if not isinstance(_SCREAMING_SNAKE_CASE  ,	_SCREAMING_SNAKE_CASE   ):
		raise ValueError("Input series is not valid, valid series - [2, 4, 6]"   )
	if len(_SCREAMING_SNAKE_CASE   ) == 0:
		raise ValueError("Input list must be a non empty list"   )
	if len(_SCREAMING_SNAKE_CASE   ) == 1:
		return True
	__lowercase		       =			series[1] - series[0]
	for index in range(len(_SCREAMING_SNAKE_CASE   ) - 1   ):
		if series[index + 1] - series[index] != common_diff:
			return False
	return True



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


if __name__ == "__main__":
	import doctest

	doctest.testmod()








import os
import sys
from contextlib import contextmanager


# Windows only
if os.name == "nt":
	import ctypes
	import msvcrt  # noqa

	class   _A   ( ctypes.Structure	):


							'''simple docstring'''





							_snake_case			:     Optional[Any]      							=      [("""size""", ctypes.c_int), ("""visible""", ctypes.c_byte)]



def    snake_case_				(    ):
	if os.name == "nt":
		__lowercase		       =			CursorInfo()
		__lowercase		       =			ctypes.windll.kernelaa.GetStdHandle(-1_1   )
		ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
		__lowercase		       =			False
		ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
	elif os.name == "posix":
		sys.stdout.write("\033[?25l"   )
		sys.stdout.flush()



def    snake_case_				(    ):
	if os.name == "nt":
		__lowercase		       =			CursorInfo()
		__lowercase		       =			ctypes.windll.kernelaa.GetStdHandle(-1_1   )
		ctypes.windll.kernelaa.GetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
		__lowercase		       =			True
		ctypes.windll.kernelaa.SetConsoleCursorInfo(_SCREAMING_SNAKE_CASE  ,	ctypes.byref(_SCREAMING_SNAKE_CASE   )   )
	elif os.name == "posix":
		sys.stdout.write("\033[?25h"   )
		sys.stdout.flush()



@contextmanager
def    snake_case_				(    ):
	try:
		hide_cursor()
		yield
	finally:
		show_cursor()



