In Python, which operator has the highest precedence?

  • * (Multiplication)
  • ** (Exponentiation)
  • + (Addition)
  • / (Division)
In Python, the double asterisk '**' operator, used for exponentiation, has the highest precedence among all operators. It is evaluated before other operators in an expression.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *