iNTERFACEWARE Products Manual > Learning Center > Learning Python > Working With Values and Variables > Arithmetic Operations > The Modulo Operator |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
The % operation, known as the modulo operation, yields the remainder of a division. For example:
Since 13 divided by 3 yields a result of 4 with a remainder of 1, 4 is assigned to dividend and 1 is assigned to remainder. |