PYTHON!!!
Write a function sum_of_digits(a,b), that takes two arguments a and b, computes a to the power of b, then recursively finds the sum of digits until there is only one digit left. You must PRINT all steps of the process as shown in the below example. sum_of_digits(5,3) will PRINT on the screen the following: 5^3 = 125 = 1 + 2 + 5 = 8 sum_of_digits(2,8) will PRINT on the screen the following: 2^8 = 256 = 2 + 5 + 6 = 13 = 1 + 3 = 4
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here