Raising a variable that holds a negative number to a power

Predict the output · Medium · §5.2 Order of operations

You have 3 fewer followers than yesterday, so the change is -3. You want to square the change to compare only its size. Predict the output without running the code.

Code

change = -3
print(change ** 2)
print(-change ** 2)
print(2 * change ** 2)

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.