What will be the output of 7 % 3 in Python?
-
A
2
-
B
3
-
C
1
Correct answer
-
D
0
13 views
Explanation
The % operator returns the remainder of the division, so 7 % 3 equals 1.
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ