+ 5

I dont understand how the modulo operator on Python works can someone help

modulo operator

20th May 2018, 7:03 PM
Joseph Asukera
Joseph Asukera - avatar
4 Answers
20th May 2018, 7:21 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 2
modulus provides the remainder: 10/3 = 3 remainder 1 therefore 10%3=1 12/3 = 4 (with no remainder) therefore 12%3=0 hope this helped a little🙈
27th Oct 2018, 3:50 AM
Zach N.
Zach N. - avatar
0
Maybe you are curious about these ones below: 20%(-6) (-20)%6 (-20)%(-6)
21st May 2018, 9:44 AM
ReLife-My
0
20%(-6) (-20)%6 (-20)%(-6)
24th May 2018, 6:02 AM
Моша