





"""simple docstring"""





def    a__       (       _SCREAMING_SNAKE_CASE     ):




		"""simple docstring"""


		return -num if num < 0 else num


def    a__       (       _SCREAMING_SNAKE_CASE     ):




		"""simple docstring"""


		if len(_SCREAMING_SNAKE_CASE     ) == 0:
				raise ValueError("abs_min() arg is an empty sequence"     )
		UpperCamelCase =						x[0]
		for i in x:
				if abs_val(_SCREAMING_SNAKE_CASE     ) < abs_val(_SCREAMING_SNAKE_CASE     ):
						UpperCamelCase =						i
		return j


def    a__       (       _SCREAMING_SNAKE_CASE     ):




		"""simple docstring"""


		if len(_SCREAMING_SNAKE_CASE     ) == 0:
				raise ValueError("abs_max() arg is an empty sequence"     )
		UpperCamelCase =						x[0]
		for i in x:
				if abs(_SCREAMING_SNAKE_CASE     ) > abs(_SCREAMING_SNAKE_CASE     ):
						UpperCamelCase =						i
		return j


def    a__       (       _SCREAMING_SNAKE_CASE     ):




		"""simple docstring"""


		if len(_SCREAMING_SNAKE_CASE     ) == 0:
				raise ValueError("abs_max_sort() arg is an empty sequence"     )
		return sorted(_SCREAMING_SNAKE_CASE	,						key=_SCREAMING_SNAKE_CASE     )[-1]


def    a__       (       ):




		"""simple docstring"""


		assert abs_val(0     ) == 0
		assert abs_val(34     ) == 34
		assert abs_val(-100_000_000_000     ) == 100_000_000_000

		UpperCamelCase =						[-3, -1, 2, -11]
		assert abs_max(_SCREAMING_SNAKE_CASE     ) == -11
		assert abs_max_sort(_SCREAMING_SNAKE_CASE     ) == -11
		assert abs_min(_SCREAMING_SNAKE_CASE     ) == -1


if __name__ == "__main__":
						import doctest

						doctest.testmod()

						test_abs_val()
						print(abs_val(-34))  # --> 34













from __future__ import annotations
def  __UpperCamelCase    (						snake_case      )    ->		bool:


   '''simple docstring'''







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

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

