[Functions >> functions and if statements] Write the definition of a function powerTo which receives two parameters, a double and an integer.

[Functions >> functions and if statements] Write the definition of a function powerTo which receives two parameters, a double and an integer.

LANGUAGE:  PYTHON

CHALLENGE:

[Functions >> functions and if statements] Write the definition of a function powerTo which receives two parameters, a double and an integer.
If the second parameter is positive, the function returns the value of the first parameter raised to the power of the second.
Otherwise, the function returns 0.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level