if number is power of base in python recursion

Solutions on MaxInterview for if number is power of base in python recursion by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "if number is power of base in python recursion"
Coline
16 Sep 2018
1def power(base,exp):
2    if(exp==1):
3        return(base)
4    if(exp!=1):
5        return(base*power(base,exp-1))
6base=int(input("Enter base: "))
7exp=int(input("Enter exponential value: "))
8print("Result:",power(base,exp))
queries leading to this page
calculate power using recursion in pythonrecursion python powerrecursion power pythonpower of 3 using recurssion in pyhton python program to find the power of a number using recursionpower of number in python using recursionexponential recursive pythonpower using recursion pythonwrite a python program to calculate power using recursionpython function to find the power of a number using recursionif number is power of base in python recursionexponent in python using recursionpower without recursion in pythonpython recursive power functionpower raised to a number using recursion in pythonpower of a number in python using recursionwrite a program to calculate power using recursion in pythona to the power of b recursion pythonpython recursive function power ofis power of python recursioncalculate power using recursion pythonwrite a program to calculate power using recursion in python 3power of number using recursion in pythonpower of 4 using recursion in pythonpower recursive in pythonprogram to find power of a number using recursion in pythonefficient recursive power function pythonfind power of a number using recursion in python exp 252power recursion pythonrecursive algorithm for power in pythonpower of a number using recursion in pythonrecursive power function pythonpython program to calculate power using recursionpython power function recursivefind power of a number using recursion in pythonrecursive dunction in python to find x 5eypower of base using recursion in pythonfind the power of a number using recursion in pythonpower set of a number in python using recursionrecursive function power pythonpower program in python recursionfind to the power of n recursion in pythonpython power recursionpython power set recursionpower x 5ey using recursion in pythonpower of n in python using recursionrecursion power function pythonpower of a number python recursionpower of using recursion pythonrecursive exponential function pythonusing recursion calculate power pythonpower function using recursion in pythonif number is power of base in python recursion