1# You can use exponents in python using double stars (**)
22 ** 3 # Output: 8
39 ** 0.5 # Output: 3
1def raise_to_power(base_num * pow_num):
2 result = 1
3 for index in range(pow_num):
4 result = result * base_num
5 return result
6
7print(raise_to_power(2, 3))
8
9# Then print the answer to the screen
10# in the last linke after the variable (2, 3) u all can put any number there to find the answer of any question.