Question: Use Python to write a method digit_sum() that will add the digits of a given input and if the sum is a single digit, it
Use Python to write a method digit_sum() that will add the digits of a given input and if the sum is a single digit, it will return that output and if not, it will add the digits of the following sum until a single digit sum is reached. The method signature should be digit_sum(num) and return an integer.

\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
