


"""simple docstring"""



from __future__ import annotations
def     UpperCAmelCase    (					_lowercase   :      Optional[Any]  )	->   bool:


	"""simple docstring"""




	lowerCAmelCase_			       = 4_2
	lowerCAmelCase_			       = list(lowercase__  )
	lowerCAmelCase_       ,  lowerCAmelCase_			       = _vector[:-1], int(_vector[-1]  )
	lowerCAmelCase_			       = [int(lowercase__  ) for digit in __vector]

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

	return check_digit % 1_0 == 0


if __name__ == "__main__":
		import doctest

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



"""simple docstring"""



lowercase_							 =       [0.485, 0.456, 0.406]
lowercase_							 =       [0.229, 0.224, 0.225]
lowercase_							 =       [0.5, 0.5, 0.5]
lowercase_							 =       [0.5, 0.5, 0.5]
lowercase_							 =       [0.4814_5466, 0.457_8275, 0.4082_1073]
lowercase_							 =       [0.2686_2954, 0.2613_0258, 0.2757_7711]