KnowledgeBoat Logo

Computer Science

How would you write xy in Python as an expression ?

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

Python Funda

2 Likes

Answer

x**y

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

Answered By

1 Like


Related Questions