


"""simple docstring"""
def 						_a				(      _SCREAMING_SNAKE_CASE				)    ->				bool:
							if not isinstance(_SCREAMING_SNAKE_CASE				, _SCREAMING_SNAKE_CASE				):
														raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""				)
							if len(_SCREAMING_SNAKE_CASE				) == 0:
														raise ValueError("""Input list must be a non empty list"""				)
							if len(_SCREAMING_SNAKE_CASE				) == 1:
														return True
							snake_case_           =		series[1] - series[0]
							for index in range(len(_SCREAMING_SNAKE_CASE				) - 1				):
														if series[index + 1] - series[index] != common_diff:
																					return False
							return True







def 						_a				(      _SCREAMING_SNAKE_CASE				)    ->				float:
							if not isinstance(_SCREAMING_SNAKE_CASE				, _SCREAMING_SNAKE_CASE				):
														raise ValueError("""Input series is not valid, valid series - [2, 4, 6]"""				)
							if len(_SCREAMING_SNAKE_CASE				) == 0:
														raise ValueError("""Input list must be a non empty list"""				)
							snake_case_           =		0
							for val in series:
														answer += val
							return answer / len(_SCREAMING_SNAKE_CASE				)


if __name__ == "__main__":
				import doctest

				doctest.testmod()







"""simple docstring"""
__SCREAMING_SNAKE_CASE							:    str		=    'Input must be a string of 8 numbers plus letter'
__SCREAMING_SNAKE_CASE							:    Dict		=    'TRWAGMYFPDXBNJZSQVHLCKE'







def 						_a				(      _SCREAMING_SNAKE_CASE				)    ->				bool:

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

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

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



