Python Fundamentals/Functions
Functions
Exercise 1 of 2
Basic Functions: Math Helpers
defparametersreturndefault argumentsdocstringslambda
Write two functions:
power(base, exponent)— returnsbaseraised to the power ofexponentis_divisible(n, divisor)— returnsTrueifnis evenly divisible bydivisor,Falseotherwise
python
⌘ EnterRun your code to see output here.