


'''simple docstring'''



from ..utils import DummyObject, requires_backends





class   UpperCAmelCase_    (metaclass=_UpperCAmelCase    ):





    """simple docstring"""






    lowerCamelCase    :   Optional[int]					=     ['note_seq']







    def __init__(				self     ,	*SCREAMING_SNAKE_CASE_     ,	**SCREAMING_SNAKE_CASE_      )							->	str:
         requires_backends(self     ,	['note_seq']      )







    @classmethod
    def  lowercase_							(				cls     ,	*SCREAMING_SNAKE_CASE_     ,	**SCREAMING_SNAKE_CASE_      )							->	Optional[int]:
         requires_backends(cls     ,	['note_seq']      )







    @classmethod
    def  lowercase_							(				cls     ,	*SCREAMING_SNAKE_CASE_     ,	**SCREAMING_SNAKE_CASE_      )							->	Optional[Any]:
         requires_backends(cls     ,	['note_seq']      )











'''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()



