






"""simple docstring"""






def  __lowerCamelCase					(					lowerCAmelCase__				):







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

				A__							 =       0
				A__							 =       str(lowerCAmelCase__				)

				while len(lowerCAmelCase__				) != 1:
								A__							 =       [int(lowerCAmelCase__				) for i in num_string]

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

								A__							 =       str(lowerCAmelCase__				)

								steps += 1
				return steps



def  __lowerCamelCase					(					lowerCAmelCase__				):







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

				A__							 =       0
				A__							 =       str(lowerCAmelCase__				)

				while len(lowerCAmelCase__				) != 1:
								A__							 =       [int(lowerCAmelCase__				) for i in num_string]

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

								A__							 =       str(lowerCAmelCase__				)

								steps += 1
				return steps


if __name__ == "__main__":
					import doctest

					doctest.testmod()










"""simple docstring"""






from ..utils import DummyObject, requires_backends





class       snake_case_       (    metaclass=_lowerCamelCase       ):



	"""simple docstring"""

	SCREAMING_SNAKE_CASE_:							List[str]   			=					["""note_seq"""]


	def __init__(      self  ,					*__a  ,					**__a						):


					"""simple docstring"""

					requires_backends(self  ,					['note_seq']						)


	@classmethod
	def       _UpperCAmelCase						(      cls  ,					*__a  ,					**__a						):


					"""simple docstring"""

					requires_backends(cls  ,					['note_seq']						)






	@classmethod
	def       _UpperCAmelCase						(      cls  ,					*__a  ,					**__a						):


					"""simple docstring"""

					requires_backends(cls  ,					['note_seq']						)


