Which of the following operators has the highest order of precedence in Python?

2026

Which of the following operators has the highest order of precedence in Python?

  1. A.

    **

  2. B.

    /

  3. C.

    +

  4. D.

    -

Attempted by 334 students.

Show answer & explanation

Correct answer: A

In Python, operator precedence determines the order of evaluation. The exponentiation operator (**) has higher precedence than multiplication/division (/) and addition/subtraction (+ or -). Therefore, exponentiation is evaluated first.

Explore the full course: Rssb Senior Computer Instructor