




def    A						(__A   :    int       )   ->      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'''       )

     UpperCAmelCase_          =							0
     UpperCAmelCase_          =							str(__A       )

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

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

          UpperCAmelCase_          =							str(__A       )

          steps += 1
     return steps


def    A						(__A   :    int       )   ->      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'''       )

     UpperCAmelCase_          =							0
     UpperCAmelCase_          =							str(__A       )

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

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

          UpperCAmelCase_          =							str(__A       )

          steps += 1
     return steps


if __name__ == "__main__":
    import doctest

    doctest.testmod()












def      A      (      _SCREAMING_SNAKE_CASE    )	-> list:
       if n_term == "":
              return []
       lowerCamelCase   :      list			 =					[]
       for temp in range(int(_SCREAMING_SNAKE_CASE    )    ):
              series.append(f'''1/{temp + 1}''' if series else "1"    )
       return series


if __name__ == "__main__":
       SCREAMING_SNAKE_CASE__       :      Dict  =   input('Enter the last number (nth term) of the Harmonic Series')
       print('Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n')
       print(harmonic_series(nth_term))






