Which one of the following has the same precedence level?
A. Addition and Subtraction
B. Multiplication, Division and Addition
C. Multiplication, Division, Addition and Subtraction
D. Addition and Multiplication
Answer: Option A
Solution (By Examveda Team)
In Python, Addition (+) and Subtraction (-) operators have the same precedence level.Multiplication (*) and Division (/) operators have a higher precedence than Addition and Subtraction.
When an expression contains operators with the same precedence, they are evaluated from left to right.
For example, in the expression 3 + 5 - 2, the addition and subtraction are performed from left to right.
Join The Discussion
Comments (1)
Related Questions on Variable Names and Operators
Which of the following is a valid variable name in Python?
A. my-variable
B. 123variable
C. _my_variable
D. $variable
What is the maximum possible length of an identifier?
A. 31 characters
B. 63 characters
C. 79 characters
D. none of the mentioned

can you explain is once