Operations | Sololearn: Learn to code for FREE!

+1

Operations

What is the meaning of this ( integ % ANOTHER INTEG) Ex... Print(20%6) 2

5/9/2019 5:45:12 AM

ABDELRHMAN RAGAB

4 Answers

New Answer

+3

ABDELRHMAN RAGAB The answer isn't 1,because you're using the division operator, not the modulo operator. To make the answer 1,you'd need to write this: 10 % 3

+1

This is the modulo operator (% in some languages, or mod in math) giving you whats left of a integer devision. E.g. 17 % 3 = 2 (due 3*5+2 = 17).

0

Like 10/3 Answer will be 1?

0

Thanks for you, I just start to learn python about 5 days ago