


"""simple docstring"""
def   _A			( _SCREAMING_SNAKE_CASE			)      ->			int:

							if not isinstance(_SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE			):
														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(_SCREAMING_SNAKE_CASE			)

							while len(_SCREAMING_SNAKE_CASE			) != 1:
														snake_case_          =						[int(_SCREAMING_SNAKE_CASE			) for i in num_string]

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

														snake_case_          =						str(_SCREAMING_SNAKE_CASE			)

														steps += 1
							return steps







def   _A			( _SCREAMING_SNAKE_CASE			)      ->			int:

							if not isinstance(_SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE			):
														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(_SCREAMING_SNAKE_CASE			)

							while len(_SCREAMING_SNAKE_CASE			) != 1:
														snake_case_          =						[int(_SCREAMING_SNAKE_CASE			) for i in num_string]

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

														snake_case_          =						str(_SCREAMING_SNAKE_CASE			)

														steps += 1
							return steps


if __name__ == "__main__":
				import doctest

				doctest.testmod()







"""simple docstring"""
def   _a			( _SCREAMING_SNAKE_CASE			,	_SCREAMING_SNAKE_CASE = 0			)      ->			list:
							snake_case_          =						length or len(_SCREAMING_SNAKE_CASE			)
							snake_case_          =						False
							for i in range(length - 1			):
														if list_data[i] > list_data[i + 1]:
																					snake_case_    ,  snake_case_          =						list_data[i + 1], list_data[i]
																					snake_case_          =						True

							return list_data if not swapped else bubble_sort(_SCREAMING_SNAKE_CASE			,	length - 1			)


if __name__ == "__main__":
				import doctest

				doctest.testmod()



