



"""simple docstring"""
def       _snake_case						(						UpperCamelCase						:		int			,		UpperCamelCase						:		int						):
 if a < 0 or b < 0:
  raise ValueError("""the value of both inputs must be positive"""						)

 UpperCAmelCase	:					Any	=	str(bin(UpperCamelCase						)						)[2:]  # remove the leading "0b"
 UpperCAmelCase	:					int	=	str(bin(UpperCamelCase						)						)[2:]  # remove the leading "0b"

 UpperCAmelCase	:					Union[str, Any]	=	max(len(UpperCamelCase						)			,		len(UpperCamelCase						)						)

 return "0b" + "".join(
     str(int(char_a == """1""" and char_b == """1"""						)						)
     for char_a, char_b in zip(a_binary.zfill(UpperCamelCase						)			,		b_binary.zfill(UpperCamelCase						)						)						)


if __name__ == "__main__":
      import doctest

      doctest.testmod()





'''simple docstring'''





def lowerCAmelCase  (__A):



     """simple docstring"""



     if not isinstance(__A  ,	__A):
          raise ValueError('''multiplicative_persistence() only accepts integral values''')
     if num < 0:
          raise ValueError('''multiplicative_persistence() does not accept negative values''')

     _a      =  0
     _a      =  str(__A)

     while len(__A) != 1:
          _a      =  [int(__A) for i in num_string]

          _a      =  1
          for i in range(0  ,	len(__A)):
               total *= numbers[i]

          _a      =  str(__A)

          steps += 1
     return steps




def lowerCAmelCase  (__A):



     """simple docstring"""



     if not isinstance(__A  ,	__A):
          raise ValueError('''additive_persistence() only accepts integral values''')
     if num < 0:
          raise ValueError('''additive_persistence() does not accept negative values''')

     _a      =  0
     _a      =  str(__A)

     while len(__A) != 1:
          _a      =  [int(__A) for i in num_string]

          _a      =  0
          for i in range(0  ,	len(__A)):
               total += numbers[i]

          _a      =  str(__A)

          steps += 1
     return steps


if __name__ == "__main__":
  import doctest

  doctest.testmod()



