Multiple choice

Which of the following is the modulo operator?

  1. *

  2. %

  3. \

  4. #

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Python and many other programming languages, the percent sign (%) is the operator used to calculate the remainder of a division, known as the modulo operator.