


def       UpperCAmelCase_					(   UpperCAmelCase__    ,				UpperCAmelCase__	):
					return number | (1 << position)


def       UpperCAmelCase_					(   UpperCAmelCase__    ,				UpperCAmelCase__	):
					return number & ~(1 << position)


def       UpperCAmelCase_					(   UpperCAmelCase__    ,				UpperCAmelCase__	):
					return number ^ (1 << position)


def       UpperCAmelCase_					(   UpperCAmelCase__    ,				UpperCAmelCase__	):
					return ((number >> position) & 1) == 1


def       UpperCAmelCase_					(   UpperCAmelCase__    ,				UpperCAmelCase__	):
					return int((number & (1 << position)) != 0	)


if __name__ == "__main__":
							import doctest

							doctest.testmod()










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







def     a_   (__A      )				->						bool:



					"""simple docstring"""

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

					__a					:						int      =					spanish_id.replace("-"				,       ""      ).upper()
					if len(__A      ) != 9:
										raise ValueError(__A      )

					try:
										__a					:						Tuple      =					int(spanish_id_clean[0:8]      )
										__a					:						Optional[int]      =					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()





