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), which is 512.

This Question Belongs to Python Program >> Variable Names And Operators

Join The Discussion

Related Questions on Variable Names and Operators