+ 4
The modulo operator gives the remainder of a division. If we try to divide 10 by 3, what remains? 10 ➗ 3 = ? It's 3, remainder 1, because 3 ✖ 3 = 9, so 10 ➖ 9 = 1 left over. In Python: print(10%3)
27th Feb 2022, 12:06 PM
Lisa
Lisa - avatar