Q21
What is the purpose of the modulo operator (%) in Python?
A.
Finding the exponent
B.
Multiplying numbers
C.
Calculating the square root
D.
Calculating the remainder
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
The % operator calculates the remainder of division.