115k views
0 votes
Which of the following correctly stores 45 squared in the variable x?

Group of answer choices

x = 45
x = x ** 2

x = 45
x = x * 2

x = 45
x = x ^ 2

x = 45
x = x % 2

1 Answer

5 votes
The correct way to store 45 squared in the variable x is:

x = 45
x = x ** 2
User Jforberg
by
7.0k points