Exponent Function
Lesson 23Author : 🦒
Last Updated : October, 2017
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