Python Exponent Function Definition:
If you code: print(2**4), this will give the result as: 16.
How to build exponent functions:
Example 1:
def raise_to_power(base_number, power_number):
===>result = 1
===>for index in range(power_number):
======>result = result * base_number
===>return result
print(raise_to_power(2, 4))
Result:
16