Computer Science, asked by tanishdesai786, 6 months ago

Write a program using Functions to Accept a Number as
base and other as exponent and print the answer
eg.
Enter Base Value:5
Enter Exponenet Value:3
Answer=125​

Answers

Answered by Anonymous
2

Answer:

hi

Explanation:

def power(a,b):

ans=a**b

return ans

# main

base= eval(input("enter the base value"))

exponent=eval(input ("enter the exponential value"))

print(power(base, exponent))

hope it helps you ☺️

Similar questions