Q.

The expression 2**2**3 is evaluates as: (2**2)**3.

A. true
B. false
Answer» B. false
Explanation: the value of the expression (2**2)**3 = 4**3 = 64. when the expression 2**2**3 is evaluated in python, we get the result as 256, because this expression is evaluated as 2**(2**3). this is because the associativity of exponentiation operator (**) is from right to left and not from left to right.
1.9k
0
Do you find this helpful?
12

Discussion

No comments yet