Lesson 17
Modulo Operator
Find the remainder
%
What's Left Over?
The modulo operator gives you the remainder after division!
The % Symbol
7 // 2 = 3How many times?
7 % 2 = 1What's left over?
Modulo is like asking "What's the remainder?"
Find the remainder
The modulo operator gives you the remainder after division!
The % Symbol
7 // 2 = 3How many times?
7 % 2 = 1What's left over?
Modulo is like asking "What's the remainder?"