CBSE Class 12 Computer Science Question 22 of 105

Python Revision Tour — Question 6

Back to all questions
6
Question

Question 6

How would you write xy in Python as an expression ?

  1. x^y
  2. x**y
  3. x^^y
  4. none of these
Answer

x**y

Reason — ** is an arithmetic operator used for exponentiation.