Help with parameters and arguments asap


#1

can anyone help me with this one def power(___, ___): # Add your parameters here!
result = base**exponent
print "%d to the power of %d is %d." % (base, exponent, result)

power(,) # Add your arguments here!


#2

Hi here the code they gave you

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

power(__,__)  # Add your arguments here!

1 Replace the ___s with the parameters base and exponent
you just ned to add to your function power() the arguments base and exponent

2 call power on a base of 37 and a power of 4.
then you should call power with 37 and 4.


#7

thanks bud:slight_smile: