Vidyalelo
Python · Q7

Python Operator Precedence: MCQs for Exam Prep

Programming · Python · question 7

Q7

What is the result of 12 // 4 / 2 ?

A.
3.0
Answer
B.
3
C.
1.0
D.
1

Answer: Option A

Solution

Answer: Option A
Solution:
The // and / operators have the same precedence and are evaluated left to right.