Vidyalelo
Python · Q21

Python MCQs: Variable Names and Operators Chapter

Programming · Python · question 21

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
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The % operator calculates the remainder of division.