




'''simple docstring'''



UpperCAmelCase_							:	str	     =		'''Input must be a string of 8 numbers plus letter'''
UpperCAmelCase_							:	str	     =		'''TRWAGMYFPDXBNJZSQVHLCKE'''







def       _UpperCamelCase			(_lowerCamelCase				:  str						)-> bool:




     '''simple docstring'''





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

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

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

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

     return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
     import doctest

     doctest.testmod()









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



def   __UpperCAmelCase					(      __a :     str      )     ->	bool:

					"""simple docstring"""

					if not isinstance(__a						,__a      ):
										_a      :       List[str]   =						F"""Expected string as input, found {type(__a      ).__name__}"""
										raise TypeError(__a      )

					_a      :       List[Any]   =						spanish_id.replace('''-'''						,''''''      ).upper()
					if len(__a      ) != 9:
										raise ValueError(__a      )

					try:
										_a      :       Any   =						int(spanish_id_clean[0:8]      )
										_a      :       str   =						spanish_id_clean[8]
					except ValueError as ex:
										raise ValueError(__a      ) from ex

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

					return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
			import doctest

			doctest.testmod()



