Exponent Function
Lesson 23Author : GOUP
Last Updated : September, 2020
Code
def raise_to_power(base_num, pow_num):
result = 1
for index in range(pow_num):
result *= base_num
return result
def raise_to_power(base_num, pow_num):
result = 1
for index in range(pow_num):
result *= base_num
return result