






"""simple docstring"""



from __future__ import annotations




def 						lowerCamelCase_				(  __A  :		str			):
					lowerCamelCase__				=42
					lowerCamelCase__				=list(__A			)
					lowerCamelCase__				,     lowerCamelCase__				=_vector[:-1], int(_vector[-1]			)
					lowerCamelCase__				=[int(__A			) for digit in __vector]

					vector.reverse()
					for i, digit in enumerate(__A			):
										if i & 1 == 0:
															lowerCamelCase__				=digit * 2
															if doubled > 9:
																				doubled -= 9
															check_digit += doubled
										else:
															check_digit += digit

					return check_digit % 10 == 0


if __name__ == "__main__":
						import doctest

						doctest.testmod()
						assert is_luhn("79927398713")
						assert not is_luhn("79927398714")







"""simple docstring"""



_snake_case       :      Dict       =					[0.485, 0.456, 0.406]
_snake_case       :      int       =					[0.229, 0.224, 0.225]
_snake_case       :      Optional[int]       =					[0.5, 0.5, 0.5]
_snake_case       :      str       =					[0.5, 0.5, 0.5]
_snake_case       :      str       =					[0.4814_5466, 0.457_8275, 0.4082_1073]
_snake_case       :      str       =					[0.2686_2954, 0.2613_0258, 0.2757_7711]