Vidyalelo
Python · Q43

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 43

Q43

What is the result of 10 - 3 + 2 ?

A.
5
B.
9
Answer
C.
-9
D.
-1

Answer: Option B

Solution

Answer: Option B
Solution:
Addition and subtraction have the same precedence and are evaluated left to right.