


import os
import sys
from contextlib import contextmanager


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






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



def 				UpperCamelCase_(      )    ->						Optional[int]:
    if os.name == "nt":
        _lowercase       :							List[str]      		=		CursorInfo()
        _lowercase       :							int      		=		ctypes.windll.kernelaa.GetStdHandle(-11 )
        ctypes.windll.kernelaa.GetConsoleCursorInfo(lowerCamelCase_							, ctypes.byref(lowerCamelCase_ ) )
        _lowercase       :							List[str]      		=		False
        ctypes.windll.kernelaa.SetConsoleCursorInfo(lowerCamelCase_							, ctypes.byref(lowerCamelCase_ ) )
    elif os.name == "posix":
        sys.stdout.write('\033[?25l' )
        sys.stdout.flush()



def 				UpperCamelCase_(      )    ->						Tuple:
    if os.name == "nt":
        _lowercase       :							Dict      		=		CursorInfo()
        _lowercase       :							Any      		=		ctypes.windll.kernelaa.GetStdHandle(-11 )
        ctypes.windll.kernelaa.GetConsoleCursorInfo(lowerCamelCase_							, ctypes.byref(lowerCamelCase_ ) )
        _lowercase       :							Dict      		=		True
        ctypes.windll.kernelaa.SetConsoleCursorInfo(lowerCamelCase_							, ctypes.byref(lowerCamelCase_ ) )
    elif os.name == "posix":
        sys.stdout.write('\033[?25h' )
        sys.stdout.flush()



@contextmanager
def 				UpperCamelCase_(      )    ->						Tuple:
    try:
        hide_cursor()
        yield
    finally:
        show_cursor()






def 				UpperCamelCase_(      lowerCamelCase_							, lowerCamelCase_							, lowerCamelCase_ )    ->						float:
    _lowercase       :							Tuple      		=		(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
    # formula for sum of series
    return total



def 				UpperCamelCase_(      )    ->						Optional[int]:
    print(sum_of_series(1							, 1							, 10 ) )


if __name__ == "__main__":
 import doctest

 doctest.testmod()


