



lowercase_								=     """Input must be a string of 8 numbers plus letter"""
lowercase_								=     """TRWAGMYFPDXBNJZSQVHLCKE"""



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_     :   Optional[int]  ):

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

			lowercase__					  =				spanish_id.replace("-"						,  ""  ).upper()
			if len(SCREAMING_SNAKE_CASE_  ) != 9:
						raise ValueError(SCREAMING_SNAKE_CASE_  )

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

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

			return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
							import doctest

							doctest.testmod()









def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_  ):
			lowercase__					  =				0
			for ch in input_str:
						lowercase__					  =				ord(SCREAMING_SNAKE_CASE_  )
						lowercase__					  =				pow(2						,  SCREAMING_SNAKE_CASE_  )

						# If we already turned on bit for current character's unicode
						if bitmap >> ch_unicode & 1 == 1:
									return False
						bitmap |= ch_bit_index_on
			return True


if __name__ == "__main__":
							import doctest

							doctest.testmod()




