?
What is the order of precedence in python?
Answer & Solution
Correct Answer:
Option
B
Operators with higher precedence are evaluated before operators with lower precedence. When operators have the same precedence, they are evaluated from left to right.
Therefore, the correct order of precedence in Python is Exponential, Parentheses, Division, Multiplication, Addition, Subtraction.
Therefore, the correct order of precedence in Python is Exponential, Parentheses, Division, Multiplication, Addition, Subtraction.
Join the Discussion
Login to post a comment or share your explanation.
LoginOrder Rule Component Operators
1st Parentheses ()
2nd Exponents **
3rd Multiplication and Division *, /
4th Addition and Subtraction +, -