What is the result of 7 % 3 in Python?
Correct answer
B. 1
6 views
B. 1
6 views
% returns the remainder: 7 divided by 3 leaves 1.
Asked in: Python Interview Data Types
https://docs.python.org/3/library/stdtypes.htmlNot sure why the answer is B? Ask here and get an explanation.