A

Admin • 833.24K Points
Coach

Q. What is the output of the following code?

Code:
x = 5
y = 2
print(x ** y)
  • (A) 25
  • (B) 7
  • (C) 10
  • (D) 2.5
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

** is the exponentiation operator in Python, so 5 ** 2 = 25.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.