Why 2 ** 3 ** 4 is equal to 2 ** (3 ** 4)?

Because that’s the precedence of exponentiation in mathematics: order of operations.

edit: That page makes a note that some languages do this differently, but I’m glad Python does it the way it works in mathematical notation.

2 Likes