Write a Python function to Find the Power of a Number Using Recursion


Topic: Write a Python function to Find the Power of a Number Using Recursion

Solution

def power(base,exp):
    if(exp==1):
        return(base)
    if(exp!=1):
        return(base*power(base,exp-1))



List all Python Programs