Which operator is used for integer division in Python?
-
A
/
-
B
//
Correct answer
-
C
%
-
D
**
11 views
Explanation
// performs floor division, returning an integer result. Source: NBF StudyHub, Chapter 2, Q2.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ