Vidyalelo
Python · Q41

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 41

Q41

What is the result of 2 ** 3 ** 2 ?

A.
64
B.
512
Answer
C.
18
D.
81

Answer: Option B

Solution

Answer: Option B
Solution:
Exponentiation is right-associative, so the expression is evaluated as 2 ** (3 ** 2), which is 512.