

from __future__ import annotations



def   __UpperCAmelCase					(      __a :     list      )     ->	list:

					"""simple docstring"""

					if len(__a      ) == 0:
										return []
					_a ,   _a      :       Tuple   =						min(__a      ), max(__a      )
					_a      :       int   =						int(max_value - min_value      ) + 1
					_a      :       list[list]   =						[[] for _ in range(__a      )]

					for i in my_list:
										buckets[int(i - min_value      )].append(__a      )

					return [v for bucket in buckets for v in sorted(__a      )]


if __name__ == "__main__":
			from doctest import testmod

			testmod()
			assert bucket_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
			assert bucket_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]






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()



