Examveda
Examveda

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

A. 64

B. 512

C. 18

D. 81

Answer: Option B

Solution(By Examveda Team)

Exponentiation is right-associative, so the expression is evaluated as 2 ** (3 ** 2).

This Question Belongs to Python Program >> Precedence And Associativity

Join The Discussion

Related Questions on Precedence and Associativity