




'''simple docstring'''


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


def 						SCREAMING_SNAKE_CASE       (      a_	:							str			):






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

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

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

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

  return letter == LOOKUP_LETTERS[number % 23]


if __name__ == "__main__":
  import doctest

  doctest.testmod()









'''simple docstring'''


def 						SCREAMING_SNAKE_CASE       (      a_	:							int				,					a_	:							int			):
  return int((input_a, input_a).count(0			) != 0			)


def 						SCREAMING_SNAKE_CASE       (      ):
  assert nand_gate(0				,					0			) == 1
  assert nand_gate(0				,					1			) == 1
  assert nand_gate(1				,					0			) == 1
  assert nand_gate(1				,					1			) == 0


if __name__ == "__main__":
  print(nand_gate(0, 0))
  print(nand_gate(0, 1))
  print(nand_gate(1, 0))
  print(nand_gate(1, 1))



