Question: def exponent _ fun ( exponent ) : Returns a function that takes one argument and returns the base raised to that

def exponent_fun(exponent):
"""
Returns a function that takes one argument and returns the
base raised to that exponent.
>>> square = exponent_fun(2)
>>> square(5)
25
>>> cubed = exponent_fun(3)
>>> cubed(2)
8
"""
"*** YOUR CODE HERE ***"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!