Vidyalelo
Python · Q18

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 18

Q18

What is the order of precedence for the arithmetic operators in Python?

A.
+, *, /, -
B.
/, *, +, -
C.
*, /, +, -
Answer
D.
+, -, *, /

Answer: Option C

Solution

Answer: Option C
Solution:
The order of precedence is: *, / (highest), +, - (lowest).