Function


#1

I have no idea what it want me to do
can someone explain in more detail.


#2

Literals in a parameter list must be assigned to a variable...

def power(base=37, exponent=4):
    # code

If the function is called with no arguments, or only one argument, the preset values take the place of missing args.

For this exercise, it is expected that we will just write in the parameters as instructed...

def power(base, exponent):

#3

thanks you very much


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.