Raise to the power of

In the code below we are trying to raise the value of num to the power of exponent. But, there's a mistake. Fix it and run the code.
num = 3 exponent = 7
result = num^exponent
print(result)
Python
Setting up Python environment...
Output