Q12
What is the result of 10 / 2 / 5 ?
A.
0.5
AnswerB.
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.
Python Operator Precedence: MCQs for Exam Prep
Programming · Python · question 12
Q12
Answer: Option A