What is the result of 5 // 2 in Python?
-
A
2.5
-
B
2
Correct answer
-
C
3
-
D
2.0
16 views
Explanation
The // operator performs integer division, discarding any fractional part. So, 5 // 2 equals 2.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ