148k views
3 votes
In Python, the expression “a ** (b ** c)” is the same as “(a ** b)

1 Answer

2 votes

Answer: False

Explanation: When two operators share an operand and the operators have the same precedence, then the expression is evaluated according to the associativity of the operators. For example, since the ** operator has right-to-left associativity, a ** (b ** c) = a ** b ** c. While on the other hand, (a ** b) = a ** b.

User Songo
by
6.6k points