4/19 - I am still stuck after countless tries


#1

def power(argument1, argument2): # Add your parameters here!
result = 37**4
print "%d to the power of %d is %d." % (base, exponent, result)

power(37, 4) # Add your arguments here!


#2

Hi, @thinkingall,

Rewrite your function, so that it computes the result from argument1 and argument2, rather than have it always return the result of 37**4.

When you call it as follows, as you have done, it will compute the result asked for in the instructions ...

power(37, 4)

But you also want it to work when is called with other arguments.


#4

Here is what worked:

def power(base,exponent): # Add your parameters here!
result = 37**4
print "%d to the power of %d is %d." % (base, exponent, result)

power(37,4) # Add your arguments here!