p
y
c
h
a
l
l
e
n
g
e
r
Home
Python Basics
Operators I
Raise to the power of
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.
reset
num = 3 exponent = 7
result = num^exponent
print(result)
Python
Setting up Python environment...
Output