📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

       What is the output of the following code: x = 5; y =

      2; print(x ** y)?
      A 10 Correct Answer Incorrect Answer
      B 25 Correct Answer Incorrect Answer
      C 32 Correct Answer Incorrect Answer
      D 5 Correct Answer Incorrect Answer
      E 2 Correct Answer Incorrect Answer

      Solution

      Explanation: The ** operator is used for exponentiation in Python. In this case, x ** y means 5 to the power of 2, which equals 25.

      Practice Next
      ask-question