PYTHON BEGINNERS - 21 : EXPONENT FUCNTION
IN THIS TUTORIAL, WE WILL LEARN ABOUT EXPONENT FUNCTION :
def raise_to_power(base_num, pow_num):
result = 1
for index in range(pow_num):
result = result * base_num
return result
print(raise_to_power(5,5))
Comments
Post a Comment