


__snake_case   							=						'''Input must be a string of 8 numbers plus letter'''
__snake_case   							=						'''TRWAGMYFPDXBNJZSQVHLCKE'''






def 		_A		(		_lowercase )					-> bool:


     """simple docstring"""


     if not isinstance(_lowercase					,  _lowercase ):
          __UpperCamelCase =			f'''Expected string as input, found {type(_lowercase ).__name__}'''
          raise TypeError(_lowercase )

     __UpperCamelCase =			spanish_id.replace('-'					,  '' ).upper()
     if len(_lowercase ) != 9:
          raise ValueError(_lowercase )

     try:
          __UpperCamelCase =			int(spanish_id_clean[0:8] )
          __UpperCamelCase =			spanish_id_clean[8]
     except ValueError as ex:
          raise ValueError(_lowercase ) from ex

     if letter.isdigit():
          raise ValueError(_lowercase )

     return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
    import doctest

    doctest.testmod()






def 		_A		(		_lowercase = 1_00 )					-> int:


     """simple docstring"""


     __UpperCamelCase =			0
     __UpperCamelCase =			0
     for i in range(1					,  n + 1 ):
          sum_of_squares += i**2
          sum_of_ints += i
     return sum_of_ints**2 - sum_of_squares


if __name__ == "__main__":
    print(f"""{solution() = }""")


