About module operator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

About module operator

Can someone please explain to me how they work? I don't understand a thing

31st Jul 2020, 6:08 PM
Tatiana Lisavencu
Tatiana Lisavencu - avatar
4 Answers
+ 1
Modulo is the remainder of two division operation. Eg. 5 % 2 means: 5 // 2 == 2 remainder 1 right? The remainder is the Modulo. More examples: 27 % 4 == 3 4 % 2 == 0 Go through this threads for more expantiation. Ensure to use the search bar 😃 https://www.sololearn.com/discuss/1517079/?ref=app https://www.sololearn.com/discuss/1293777/?ref=app https://www.sololearn.com/discuss/2411312/?ref=app https://www.sololearn.com/discuss/1886872/?ref=app https://www.sololearn.com/discuss/2318167/?ref=app https://www.sololearn.com/discuss/760124/?ref=app https://www.sololearn.com/discuss/457646/?ref=app
31st Jul 2020, 6:24 PM
Tomiwa Joseph
Tomiwa Joseph - avatar
0
Tatiana Lisavencu Module or Modulo??
31st Jul 2020, 6:17 PM
Tomiwa Joseph
Tomiwa Joseph - avatar
0
modulo
31st Jul 2020, 6:19 PM
Tatiana Lisavencu
Tatiana Lisavencu - avatar
0
Thank you very much
31st Jul 2020, 6:47 PM
Tatiana Lisavencu
Tatiana Lisavencu - avatar