



'''simple docstring'''



import os
import sys
from contextlib import contextmanager


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






	class 					UpperCAmelCase__	(		ctypes.Structure ):
						# _fields is a specific attr expected by ctypes
						a      :     Tuple        =							[("""size""", ctypes.c_int), ("""visible""", ctypes.c_byte)]



def   __lowerCAmelCase					(							):






	'''simple docstring'''




	if os.name == "nt":
		__lowerCAmelCase												=  CursorInfo()
		__lowerCAmelCase												=  ctypes.windll.kernelaa.GetStdHandle(-11					)
		ctypes.windll.kernelaa.GetConsoleCursorInfo(lowerCamelCase				,		ctypes.byref(lowerCamelCase					)					)
		__lowerCAmelCase												=  False
		ctypes.windll.kernelaa.SetConsoleCursorInfo(lowerCamelCase				,		ctypes.byref(lowerCamelCase					)					)
	elif os.name == "posix":
		sys.stdout.write("\033[?25l"					)
		sys.stdout.flush()



def   __lowerCAmelCase					(							):






	'''simple docstring'''




	if os.name == "nt":
		__lowerCAmelCase												=  CursorInfo()
		__lowerCAmelCase												=  ctypes.windll.kernelaa.GetStdHandle(-11					)
		ctypes.windll.kernelaa.GetConsoleCursorInfo(lowerCamelCase				,		ctypes.byref(lowerCamelCase					)					)
		__lowerCAmelCase												=  True
		ctypes.windll.kernelaa.SetConsoleCursorInfo(lowerCamelCase				,		ctypes.byref(lowerCamelCase					)					)
	elif os.name == "posix":
		sys.stdout.write("\033[?25h"					)
		sys.stdout.flush()




@contextmanager
def   __lowerCAmelCase					(							):






	'''simple docstring'''




	try:
		hide_cursor()
		yield
	finally:
		show_cursor()




'''simple docstring'''



from __future__ import annotations



def   __lowerCAmelCase					(							lowerCamelCase   :						list					):






	'''simple docstring'''




	if not nums:
		raise ValueError("List is empty"					)
	return sum(lowerCamelCase					) / len(lowerCamelCase					)


if __name__ == "__main__":
	import doctest

	doctest.testmod()