This program task uses Python to add given numbers and multiply its digits until a single digit is left over.
Create a Python method, `sum_multiply_digits`, which is capable of taking any quantity of integer type values as arguments. Once valid inputs are received, these arguments must be summed up & iterate multiplication process on the digit(s) of the resultant sum unless a single digit output is achieved. ### Parameters - `*args`: An unlimited number of integers that are going to be summed up. (0 <= `args` <= N). ### Return Value - Return the final product after recursively multiplying the digits of the sum, until a single digit result is obtained. ### Examples ```python # Adding 16 and 28 gives 44, multiplying 4 and 4 gives 16, and multiplying 1 and 6 gives 6 sum_multiply_digits(16, 28) # Returns: 6 # No addition or multiplication needed, answer is 0 sum_multiply_digits(0) # Returns: 0 # We add all digits 1 to 6 giving 21, and multiplying 2 and 1 gives 2 sum_multiply_digits(1, 2, 3, 4, 5, 6) # Returns: 2 ```