Vidyalelo
Python · Q34

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 34

Q34

What is the result of the expression 5 // 2 ?

A.
2.5
B.
2
Answer
C.
2.0
D.
3

Answer: Option B

Solution

Answer: Option B
Solution:
The // operator performs floor division, resulting in the quotient without the fractional part.