






from __future__ import annotations





def 						A_					(						lowercase_			)				->bool:







 """simple docstring"""

 SCREAMING_SNAKE_CASE				    =		42
 SCREAMING_SNAKE_CASE				    =		list(lowercase_			)
 SCREAMING_SNAKE_CASE    ,   SCREAMING_SNAKE_CASE				    =		_vector[:-1], int(_vector[-1]			)
 SCREAMING_SNAKE_CASE				    =		[int(lowercase_			) for digit in __vector]

 vector.reverse()
 for i, digit in enumerate(lowercase_			):
  if i & 1 == 0:
   SCREAMING_SNAKE_CASE				    =		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")












from __future__ import annotations

import re





def 						A_					(						lowercase_			)				->list[str]:







 """simple docstring"""

 def alphanum_key(lowercase_			):
  return [int(lowercase_			) if s.isdigit() else s.lower() for s in re.split('([0-9]+)'	,  lowercase_			)]

 return sorted(lowercase_	,  key=lowercase_			)


if __name__ == "__main__":
      import doctest

      doctest.testmod()




