Vidyalelo
Python · Q20

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 20

Q20

What is the result of 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.