Which operator is used for exponentiation in Python?

Options

  • A. ^
  • B. **
  • C. //
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. **

Detailed Explanation

The operator ** is used for exponentiation. For example, 2 ** 3 gives 8.