```
def raise_to_power(base_num, pow_num):
result = 1
print(f"base: {base_num}, exponent: {pow_num}")
for index in range(pow_num):
print(f"index: {index}\nresult: {result}")
print(f"result is being set to = {result} * {base_num}")
result = result * base_num
print(f"result is now: {result}")
return result
print (raise_to_power(2,3)
```

this yields:

```
base: 2, exponent: 3
index: 0
result: 1
result is being set to = 1 * 2
result is now: 2
index: 1
result: 2
result is being set to = 2 * 2
result is now: 4
index: 2
result: 4
result is being set to = 4 * 2
result is now: 8
```

Note that to raise something to an exponent x^n means to multiply x by itself `n`

times.

So x^4 = x * x * x *x

But please note that the most important take-away from this is not how the exponent function worked, but rather the process (methodology) in trying to decipher how it worked. This process is much more useful in terms of future problem solving and programming.