






def      a_ (      _A  )			->			int:







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

				snake_case__									=     0
				snake_case__									=     str(_A  )

				while len(_A  ) != 1:
								snake_case__									=     [int(_A  ) for i in num_string]

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

								snake_case__									=     str(_A  )

								steps += 1
				return steps
def      a_ (      _A  )			->			int:







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

				snake_case__									=     0
				snake_case__									=     str(_A  )

				while len(_A  ) != 1:
								snake_case__									=     [int(_A  ) for i in num_string]

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

								snake_case__									=     str(_A  )

								steps += 1
				return steps


if __name__ == "__main__":
							import doctest

							doctest.testmod()












from argparse import ArgumentParser

from .env import EnvironmentCommand
def      a_ (      )			->			Optional[Any]:







				"""simple docstring"""
				snake_case__									=     ArgumentParser('Diffusers CLI tool'      ,   usage='diffusers-cli <command> [<args>]'  )
				snake_case__									=     parser.add_subparsers(help='diffusers-cli command helpers'  )

				# Register commands
				EnvironmentCommand.register_subcommand(_A  )

				# Let's go
				snake_case__									=     parser.parse_args()

				if not hasattr(_A      ,   'func'  ):
								parser.print_help()
								exit(1  )

				# Run
				snake_case__									=     args.func(_A  )
				service.run()


if __name__ == "__main__":
							main()




