Learn Python
WIP Playing with Numbers
9.11
Lesson

WIP - Finding the remainder

When we use the \ operator in the division operation the result we obtain is the quotient. If we are expecting remainder as an answer then the % can be used. This is called a modulus operator.

In the below example, we are dividing 255 by 25. In the variable remainder, we will be storing the remainder and in the variable quotient, we will be storing the quotient.