A

Admin • 828.03K Points
Coach

Q. What will be the output of `print(2 ** 3 ** 2)`?

  • (A) 64
  • (B) 512
  • (C) 256
  • (D) 36
  • Correct Answer - Option(B)
  • Views: 14
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Python evaluates right to left for exponentiation: 3 ** 2 = 9, then 2 ** 9 = 512.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.