What will be the output of the following Python function? print(2**3**2,…
2026
What will be the output of the following Python function?
print(2**3**2, (2**3)**2, 2**(3*2))
- A.
512 64 64
- B.
512 512 512
- C.
64 64 64
- D.
64 64 512
Attempted by 191 students.
Show answer & explanation
Correct answer: A
2**3**2 = 512 (right-associative). (2**3)**2 = 64. 2**(3*2) = 64.