

"""simple docstring"""





def 						_A						(						UpperCamelCase_  : int)			->		int:
   '''simple docstring'''


   barcode //= 10  # exclude the last digit
   __lowercase			=		False
   __lowercase			=		0

   # extract and check each digit
   while barcode != 0:
      __lowercase			=		1 if checker else 3
      s += mult * (barcode % 10)
      barcode //= 10
      __lowercase			=		not checker

   return (10 - (s % 10)) % 10




def 						_A						(						UpperCamelCase_  : int)			->		bool:
   '''simple docstring'''


   return len(str(UpperCamelCase_)) == 13 and get_check_digit(UpperCamelCase_) == barcode % 10




def 						_A						(						UpperCamelCase_  : str)			->		int:
   '''simple docstring'''


   if str(UpperCamelCase_).isalpha():
      __lowercase			=		F"""Barcode '{barcode}' has alphabetic characters."""
      raise ValueError(UpperCamelCase_)
   elif int(UpperCamelCase_) < 0:
      raise ValueError("The entered barcode has a negative value. Try again.")
   else:
      return int(UpperCamelCase_)


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   _a				   =							get_barcode(input('Barcode: ').strip())

   if is_valid(barcode):
      print(F"'{barcode}' is a valid barcode.")
   else:
      print(F"'{barcode}' is NOT a valid barcode.")







"""simple docstring"""





def 						_A						(						UpperCamelCase_  : float,    UpperCamelCase_  : float)			->		float:
   '''simple docstring'''


   __lowercase			=		float()
   try:
      __lowercase			=		mass * acceleration
   except Exception:
      return -0.0
   return force


if __name__ == "__main__":
   import doctest

   # run doctest
   doctest.testmod()

   # demo
   _a				   =							12.5
   _a				   =							10
   _a				   =							newtons_second_law_of_motion(mass, acceleration)
   print('The force is ', force, 'N')




