The % operator in Python returns:
-
A
Quotient
-
B
Remainder
Correct answer
-
C
Product
-
D
Power
Correct answer
B. Remainder
9 views
Explanation
% is the modulus operator. It returns the remainder of division. 10 % 3 gives 1.
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