[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.
SOLUTION:
The Bad News: The content you are trying to access is only available to members.
The Good News: You too can be a member, simply Click Here.
Already a member? Log In Here
Posted in Learn To Code, Python