Vidyalelo
Python · Q12

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 12

Q12

What is the result of 10 / 2 / 5 ?

A.
0.5
Answer
B.
1.0
C.
2.5
D.
25

Answer: Option A

Solution

Answer: Option A
Solution:
Division has left-to-right associativity, so the result is 0.5.