ExamVeda
Login
Home
Introduction to Python
?

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.
Examveda
Question posted by Examveda
Community

Join the Discussion

2 Comments
Puja Bose
Puja Bose 2 months ago
D will be the Right answer
Manasa S
Manasa S 2 years ago
it follows PEMDAS Rule
Order Rule Component Operators
1st Parentheses ()
2nd Exponents **
3rd Multiplication and Division *, /
4th Addition and Subtraction +, -